body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;

}
html {
    overflow-y: scroll;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    border-bottom: 1px solid #ccc;
    border-radius: 0px;

    position: fixed;  /* Cố định header */
    top: 0;           /* Đặt ở trên cùng */
    left: 0;
    width: 100%;      /* Chiều rộng full trang */
    z-index: 1000;    /* Đảm bảo header không bị che khuất */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5); /* Đổ bóng nhẹ */
}


.logo {


    display: flex;
    align-items: center;
    gap: 10px;


}


.logo img {
    width: 50px; /* Cập nhật kích thước phù hợp */


}


.logo span {
    font-size: 20px;
    font-weight: bold;
    color: black;


}


.logo .highlight {
    color: orange;


}


.nav {
    display: flex;
    gap: 35px;
}


.nav a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}


.nav a:hover,
.nav a.active {
    border-color: orange;
}


.auth-buttons {
    /*display: flex;*/
    gap: 10px; /* Khoảng cách giữa hai nút */
    all: unset;
}
.auth-buttons span {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}


.auth-buttons .btn-login,
.auth-buttons .btn-register
{
    padding: 10px 20px; /* Kích thước nút */
    font-size: 14px;
    border: none;
    border-radius: 25px; /* Bo tròn góc */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s; /* Hiệu ứng mượt */;
}

.auth-buttons .btn-login,
.auth-buttons .btn-register {
    width: 120px; /* Đặt chiều rộng cố định */
    height: 40px; /* Đặt chiều cao cố định */
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1; /* Đảm bảo dòng chữ không làm thay đổi kích thước */
    display: inline-block; /* Giữ nguyên dạng button */
    vertical-align: middle; /* Canh giữa nội dung */
}



.auth-buttons .btn-login {
    background-color: #f0ad4e; /* Màu nền gốc cho nút Đăng nhập */
    color: white;
}


.auth-buttons .btn-register {
    background-color: #5bc0de; /* Màu nền gốc cho nút Đăng ký */
    color: white;
}


/* Hiệu ứng khi rê chuột */
.auth-buttons .btn-login:hover {
    background-color: #ec971f; /* Màu nền khi rê chuột vào nút Đăng nhập */
    transform: scale(1.05); /* Phóng to nhẹ */
}


.auth-buttons .btn-register:hover {
    background-color: #31b0d5; /* Màu nền khi rê chuột vào nút Đăng ký */
    transform: scale(1.05); /* Phóng to nhẹ */
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px; /* Tăng khoảng cách giữa chữ và nút */
}

/* Chữ "Xin chào, ..." */
.auth-buttons span {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

/* Nút Đăng xuất */
.auth-buttons .btn-logout {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 20px;
    background-color: #d9534f; /* Màu đỏ nhẹ */
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

/* Hiệu ứng hover */
.auth-buttons .btn-logout:hover {
    background-color: #c9302c; /* Màu đậm hơn khi hover */
    transform: scale(1.05); /* Phóng to nhẹ */
}


/**/


.account-header {
    position: relative;
    display: flex;
    align-items: center;
}

#avatar-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 20px;
    transition: transform 0.2s ease-in-out;
}

#avatar-img:hover {
    transform: scale(1.1);
}

#header-subnav {
    display: none;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    z-index: 100;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#header-subnav li {
    list-style: none;
}

#header-subnav li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

#header-subnav li a:hover {
    background: rgba(0, 0, 0, 0.05);
}

#header-subnav li a[style="color: red;"] {
    font-weight: bold;
}






