/* ===== HEADER GLASS ===== */
.modern-header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== LOGO ===== */
.logo-img {
    height: 50px;
    margin-left: 10vh;
}

@media (max-width: 576px) {
    .logo-img {
        height: 50px;
    }
}

/* ===== USER BUTTON ===== */
.user-btn {
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
    padding: 6px 10px;
    border-radius: 12px;
}

.avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    background: white;
}

.mobile-link {
    display: block;
    padding: 10px 0;
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.mobile-link:hover {
    color: #0d6efd;
}

/* CSS mới */
/* ===== DEFAULT GLASS ===== */
.modern-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.6);
}

/* ===== WHEN SCROLL ===== */
.modern-header.scrolled {
    backdrop-filter: blur(0px);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===== ICON BUTTON ===== */
.icon-btn {
    background: transparent;
    border: none;
    position: relative;
}

.icon-btn:hover {
    color: #0d6efd;
}

/* ===== AVATAR ===== */
.avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* ===== DROPDOWN ===== */
.modern-dropdown {
    border-radius: 14px;
    border: none;
    min-width: 250px;
}

/* ===== HEADER LAYOUT ===== */
.header-inner {
    position: relative;
}

/* Mobile toggle cố định bên trái */
.mobile-toggle {
    position: absolute;
    left: 0;
}

/* Logo giữa mobile */
.logo-wrapper {
    display: flex;
    justify-content: center;
}

/* Desktop layout */
@media (min-width: 992px) {
    .header-inner {
        justify-content: space-between;
    }

    .mobile-toggle {
        display: none;
    }

    .logo-wrapper {
        margin: 0;
    }

    .user-wrapper {
        margin-left: auto;
    }
}

/* CSS cho phần USER */
/* ================= USER BUTTON ================= */
.user-btn {
    display: flex;
    align-items: center;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.user-btn:hover {
    background: rgba(13, 110, 253, 0.08);
}

/* Remove default arrow */
.user-btn::after {
    display: none !important;
}

/* Custom arrow */
.user-btn::before {
    content: "▾";
    font-size: 12px;
    margin-left: 8px;
    color: #888;
}

/* ================= AVATAR ================= */
.avatar {
    position: relative;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Online dot */
.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ================= ROLE BADGE ================= */
.role-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 6px;
    font-weight: 600;
    vertical-align: middle;
}

.role-thisinh {
    background: #0d6efd;
    color: #fff;
}

.role-qldt {
    background: #6f42c1;
    color: #fff;
}

.role-ketoan {
    background: #fd7e14;
    color: #fff;
}

.role-bgh {
    background: #dc3545;
    color: #fff;
}

/* ================= DROPDOWN ================= */
.modern-dropdown {
    border-radius: 18px;
    border: none;
    padding: 10px 0;
    min-width: 280px;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.modern-dropdown .dropdown-item {
    padding: 10px 20px;
    border-radius: 12px;
    transition: 0.25s;
}

.modern-dropdown .dropdown-item:hover {
    background: rgba(13, 110, 253, 0.08);
}

/* ================= DARK MODE ================= */
body.dark-mode {
    background: #0f172a;
    color: #f1f5f9;
}

body.dark-mode .modern-header {
    background: rgba(15, 23, 42, 0.9);
}

body.dark-mode .modern-dropdown {
    background: #1e293b;
    color: #fff;
}

body.dark-mode .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-header {
    font-size: 11pt;
}
.dropdown-item {
    font-size: 11pt;
}
.user-info {
    font-size: 11pt;
}