
        /* Reset CSS cho header */
        .kiemtra-shared-header * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        .kiemtra-shared-header-body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        .kiemtra-business-header-wrapper {
            background: white;
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 3px solid #007DB3;
        }
        
        .kiemtra-header-main-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .kiemtra-header-top-section {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Giữ space-between để phân bổ đều */
    gap: 0.5rem; /* Giảm gap từ 5rem xuống để nav fit ngang hàng */
    padding: 15px 0;
    border-bottom: 1px solid #037bf4ff;
    flex-wrap: nowrap; /* Không wrap xuống dòng trên laptop */
}

/* Thêm mới: Làm nav nằm ngang hàng với logo và user info */
.kiemtra-main-navigation-wrapper.kiemtra-nav-inline {
    display: flex; /* Nav hiển thị ngang */
    margin: 0 auto; /* Căn giữa nếu cần, nhưng space-between sẽ tự điều chỉnh */
}
.kiemtra-nav-list-container {
    display: flex;
    flex-direction: row; /* Các tab ngang hàng */
    list-style: none;
    padding: 0;
    margin: 0;
}
.kiemtra-nav-item-element {
    margin: 0 10px; /* Khoảng cách giữa các tab */
}
        
        .kiemtra-mobile-menu-toggle-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #007DB3;
            cursor: pointer;
            flex: 0 0 auto;
            margin-top: 1rem;
            justify-content: flex-start;
        }
        
.kiemtra-logo-brand-section {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-start; /* Thêm: Căn trái toàn bộ section */
    text-align: left; /* Thêm: Đảm bảo text căn trái */
}

.kiemtra-brand-title {
    font-size: 1.2rem; /* Giữ nhỏ như đã sửa trước */
    font-weight: bold;
    color: #007DB3;
    text-align: left; /* Sửa từ center thành left để căn trái */
}

/* Thêm mới: Style cho span con để stack Business trên Health Check */
.kiemtra-brand-business, .kiemtra-brand-health-check {
    display: block; /* Stack dọc */
}
.kiemtra-brand-business {
    font-size: 1.1em; /* Business hơi lớn hơn */
}
.kiemtra-brand-health-check {
    font-size: 1em;
}
        
        .kiemtra-user-info-section {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .kiemtra-user-profile-display {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #495057;
        }
        
        .kiemtra-user-score {
            display: none;
            align-items: center;
            gap: 5px;
            color: #007DB3;
            font-weight: bold;
            font-size: 1.1rem;
            flex: 0 0 auto;
        }
        
        .kiemtra-user-avatar-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            cursor: pointer;
        }

        /* Màu xám khi chưa đăng nhập */
        .kiemtra-user-avatar-circle.kiemtra-not-logged-in {
            background: #6c757d;
        }

        /* Màu xanh khi đã đăng nhập */
        .kiemtra-user-avatar-circle.kiemtra-logged-in {
            background: linear-gradient(135deg, #007DB3 0%, #056C99 100%);
        }
        
        /* CSS cho notification icon giống Facebook */
        .kiemtra-notification-icon {
            position: relative;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #f0f2f5;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-right: 5px;
        }
        
        .kiemtra-notification-icon:hover {
            background: #e4e6ea;
        }
        
        .kiemtra-notification-icon i {
            color: #050505;
            font-size: 1.2rem;
        }
        
        /* Red dot badge for notifications */
        .kiemtra-notification-badge {
            position: absolute;
            top: -2px;
            right: -2px;
            background: #ff3040;
            color: white;
            border-radius: 50%;
            min-width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: bold;
            border: 2px solid white;
        }
        
        .kiemtra-main-navigation-wrapper {
            padding: 0;
        }
        
        .kiemtra-nav-list-container {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        

        
        .kiemtra-nav-link-element {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 15px 20px;
            text-decoration: none;
            color: #495057;
            font-weight: 600;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
            position: relative;
        }
        
        .kiemtra-nav-link-element:hover {
            background: #f8f9fa;
            color: #007DB3;
        }
        
        .kiemtra-nav-link-element.kiemtra-nav-active {
            background: linear-gradient(135deg, #007DB3 0%, #056C99 100%);
            color: white;
            border-bottom-color: #056C99;
        }
        
        .kiemtra-breadcrumb-wrapper {
            background: rgba(255,255,255,0.9);
            padding: 10px 0;
            border-bottom: 1px solid #e9ecef;
        }
        
        .kiemtra-breadcrumb-list-container {
            display: flex;
            align-items: center;
            gap: 10px;
            list-style: none;
            margin: 0;
            padding: 0;
            color: #6c757d;
            font-size: 0.9rem;
        }
        
        .kiemtra-breadcrumb-item-element {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .kiemtra-breadcrumb-item-element a {
            color: #007DB3;
            text-decoration: none;
        }
        
        .kiemtra-breadcrumb-item-element a:hover {
            text-decoration: underline;
        }
        
        .kiemtra-breadcrumb-item-element.kiemtra-breadcrumb-active {
            color: #495057;
            font-weight: 600;
        }
        
        .kiemtra-quick-stats-wrapper {
            display: flex;
            gap: 20px;
            padding: 10px 0;
            font-size: 0.8rem;
            color: #6c757d;
        }
        
        .kiemtra-quick-stats-wrapper .kiemtra-stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        /* Tạo kiểu trang nội dung */
        .kiemtra-main-content-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .kiemtra-page-wrapper-container {
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        @media (max-width: 768px) {
            /* Thêm mới: Ẩn nav inline trên mobile */
    .kiemtra-main-navigation-wrapper.kiemtra-nav-inline {
        display: none; /* Ẩn mặc định */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    .kiemtra-main-navigation-wrapper.kiemtra-nav-inline.kiemtra-nav-show {
        display: block; /* Hiện khi toggle */
    }
    .kiemtra-nav-list-container {
        flex-direction: column; /* Stack dọc trên mobile */
    }
    .kiemtra-mobile-menu-toggle-btn {
        display: block; /* Hiện toggle trên mobile */
        margin-top: 0; /* Điều chỉnh nếu cần */
    }
            .kiemtra-header-main-container {
                padding: 0 15px;
            }
            .kiemtra-logo-img {
                width: 24px;
                height: 24px;
            }   
            .kiemtra-header-top-section {
                position: relative;
            }
            
            .kiemtra-brand-title {
                font-size: 1.5rem;
                line-height: 1.5;
            }
            
            /* Ẩn mobile menu toggle button trên mobile */
            .kiemtra-mobile-menu-toggle-btn {
                display: none;
            }
            
            .kiemtra-main-navigation-wrapper {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: white;
                box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            }
            
            .kiemtra-main-navigation-wrapper.kiemtra-nav-show {
                display: block;
            }
            
            .kiemtra-nav-list-container {
                flex-direction: column;
            }
            
            .kiemtra-nav-link-element {
                justify-content: flex-start;
                padding: 15px 20px;
                border-bottom: 1px solid #e9ecef;
            }
            
            .kiemtra-user-profile-display {
                font-size: 1rem;
            }
            
            .kiemtra-user-avatar-circle {
                width: 35px;
                height: 35px;
            }
            
            .kiemtra-notification-icon {
                width: 35px;
                height: 35px;
            }
            
            .kiemtra-notification-icon i {
                font-size: 1rem;
            }
            
            .kiemtra-main-content-wrapper {
                padding: 15px;
            }
            .kiemtra-user-score {
                display: none;
            }
            
            /* Ẩn breadcrumb trên mobile */
            .kiemtra-breadcrumb-wrapper {
                display: none;
            }
        }
        
        @media (max-width: 576px) {
            .kiemtra-breadcrumb-list-container {
                flex-wrap: wrap;
            }
        }
        
        /* Breadcrumb Navigation Specific */
        .kiemtra-breadcrumb-nav-container {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 15px 0;
            margin-bottom: 20px;
            font-size: 14px;
            color: #666;
        }

        .kiemtra-breadcrumb-nav-container a {
            color: #007DB3;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.3s ease;
        }

        .kiemtra-breadcrumb-nav-container a:hover {
            color: #056C99;
        }

        .kiemtra-breadcrumb-nav-container .kiemtra-breadcrumb-separator {
            color: #ccc;
            font-size: 12px;
        }

        .kiemtra-breadcrumb-nav-container .kiemtra-breadcrumb-current {
            color: #333;
            font-weight: 500;
        }
        
        .kiemtra-logo-img {
            width: 45px;
            height: 45px;
            object-fit: contain;
        }
        
        /* Responsive adjustments for breadcrumb */
        @media (max-width: 768px) {
            .kiemtra-breadcrumb-nav-container {
                font-size: 12px;
                padding: 10px 0;
                margin-bottom: 15px;
            }
            
            .kiemtra-breadcrumb-nav-container .kiemtra-breadcrumb-separator {
                font-size: 10px;
            }
        }
        
        @media (min-width: 769px) {
            .kiemtra-mobile-menu-toggle-btn {
        display: none;
    }
    .kiemtra-main-navigation-wrapper.kiemtra-nav-inline {
        display: flex; /* Hiện nav ngang */
    }
    .kiemtra-header-top-section {
        flex-wrap: nowrap; /* Đảm bảo không wrap */
    }
            .kiemtra-mobile-menu-toggle-btn {
                display: none;
            }
            .kiemtra-header-top-section {
                display: flex;
                justify-content: space-between;
            }
            .kiemtra-logo-brand-section {
        justify-content: flex-start;
        text-align: left;
    }
    .kiemtra-brand-title {
        text-align: left;
        font-size: 1.3rem; /* Giữ nguyên gốc cho mobile */
    }
            .kiemtra-user-info-section {
                order: 1;
                margin-left: auto;
            }
            .kiemtra-user-score {
                display: flex;
                order: 0;
                margin-right: 10px;
            }
        }
        
        /* CSS cho popup tooltip */
        .kiemtra-user-info-section {
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative; /* Thêm position relative */
        }



        /* Mũi tên pointing lên avatar */
        .kiemtra-popup-tooltip::before {
            content: '';
            position: absolute;
            top: -8px;
            right: 4.5rem;
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid white;
            filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.1));
        }

        .kiemtra-popup-tooltip h2 {
            margin-bottom: 15px;
            color: #007DB3;
            font-size: 1.2rem;
            text-align: left;
        }

        .kiemtra-popup-tooltip p {
            margin-bottom: 8px;
            font-size: 0.95rem;
            color: #495057;
            line-height: 1.4;
        }

        .kiemtra-popup-tooltip p strong {
            color: #007DB3;
            font-weight: 600;
        }

        @keyframes fadeInTooltip {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive cho mobile */
        @media (max-width: 768px) {
            
            .kiemtra-popup-tooltip::before {
                right: 1.2rem;
            }
        }
        
        .kiemtra-notification-tooltip {
    /* Vị trí khác với popup avatar */
    right: 50px; /* Thay vì right: -10px như avatar */
}

.kiemtra-notification-tooltip::before {
    /* Mũi tên ở vị trí khác */
    right: 7.9rem; /* Thay vì right: 20px như avatar */
}

/* CSS riêng cho nội dung thông báo */
.kiemtra-notification-list {
    max-height: 280px;
    overflow-y: auto;
}

.kiemtra-notification-item {
    padding: 5px 5px;
    border-bottom: 1px solid #007DB3;
    cursor: pointer;
    transition: background 0.2s;
}

.kiemtra-notification-item:hover {
    background: #f8f9fa;
}

.kiemtra-notification-item.unread {
    background: #e3f2fd;
    padding-left: 10px;
    padding-right: 10px;
}

.kiemtra-notification-content h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #333;
}

.kiemtra-notification-content p {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.kiemtra-notification-content small {
    color: #999;
    font-size: 0.75rem;
}

.kiemtra-no-notifications {
    padding: 20px 0;
    text-align: center;
    color: #999;
    font-style: italic;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .kiemtra-notification-tooltip {
        right: -10px;
        width: 260px;
    }
    
    .kiemtra-notification-tooltip::before {
        right: 4.3rem;
    }
}
/* Màu theo type thông báo */
.kiemtra-notification-item.type-info {
    border-left: 4px solid #17a2b8; /* Màu xanh dương cho info */
    background: #e6f5f7ff;
}
.kiemtra-notification-item.type-warning {
    border-left: 4px solid #fec61cff; /* Màu vàng cho warning */
    background: #fff3cd; /* Nền nhạt */
}
.kiemtra-notification-item.type-success {
    border-left: 4px solid #28a745; /* Màu xanh lá cho success */
}
.kiemtra-notification-item.type-error {
    border-left: 4px solid #dc3545; /* Màu đỏ cho error */
    background: #f8d7da; /* Nền nhạt */
}

/* Kết hợp với unread: ưu tiên màu type nếu có */
.kiemtra-notification-item.unread.type-info {
    background: #d1ecf1;
}
.kiemtra-notification-item.unread.type-warning {
    background: #fff3cd;
}
.kiemtra-notification-item.unread.type-success {
    background: #d4edda;
}
.kiemtra-notification-item.unread.type-error {
    background: #f8d7da;
}
/* Go to Top Button */
.kiemtra-go-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2); /* Nền trong suốt */
    backdrop-filter: blur(10px); /* Hiệu ứng blur */
    -webkit-backdrop-filter: blur(10px);
    color: #007DB3; /* Màu xanh cho icon */
    border: 2px solid rgba(0, 125, 179, 0.3); /* Border nhẹ màu xanh */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.kiemtra-go-to-top-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    color: #007DB3; /* Đảm bảo icon màu xanh */
}

.kiemtra-go-to-top-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.3); /* Nền sáng hơn khi hover */
    border-color: rgba(0, 125, 179, 0.5);
    box-shadow: 0 6px 20px rgba(0, 125, 179, 0.2);
    color: #056C99; /* Icon đậm hơn khi hover */
}

.kiemtra-go-to-top-btn:hover i {
    color: #056C99; /* Icon đậm hơn khi hover */
}

.kiemtra-go-to-top-btn:active {
    transform: translateY(-1px);
}

.kiemtra-go-to-top-btn.show {
    display: flex !important;
    animation: fadeInUp 0.4s ease-out;
}

.kiemtra-go-to-top-btn.hide {
    animation: fadeOutDown 0.3s ease-in forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .kiemtra-go-to-top-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
        margin-bottom: 4rem;
    }
}


/* CSS giữ nguyên như đã hướng dẫn trước */
.kiemtra-fake-notif-container {
    display: none;
    position: fixed;
    z-index: 9999;
    /* ❌ XÓA: background và color cố định */
    /* background: linear-gradient(135deg, #28a745, #20c997); */
    /* color: white; */
    /* padding: 15px; */
    /* border-radius: 10px; */
    /* font-size: 14px; */
    
    /* ✅ GIỮ LẠI: */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.kiemtra-fake-notif-container.position-left {
    left: var(--notif-left, 20px);
    bottom: var(--notif-bottom, 20px);
}

.kiemtra-fake-notif-container.position-right {
    right: var(--notif-right, 20px);
    bottom: var(--notif-bottom, 20px);
}

@media (max-width: 768px) {
    .kiemtra-fake-notif-container {
        max-width: var(--mobile-width, 280px) !important;
        height: var(--mobile-height, 70px) !important;
    }
    
    .kiemtra-fake-notif-container.position-left {
        left: var(--mobile-left, 10px) !important;
        bottom: var(--mobile-bottom, 70px) !important;
    }
    
    .kiemtra-fake-notif-container.position-right {
        right: var(--mobile-right, 10px) !important;
        bottom: var(--mobile-bottom, 70px) !important;
    }
    
    .kiemtra-fake-notif-container .fa-bell {
        margin-right: 6px;
        font-size: 14px;
    }
}

.kiemtra-fake-notif-container .fa-bell {
    margin-right: 8px;
    font-size: 16px;
}

.kiemtra-fake-notif-container .close-btn {
    background: none;
    border: none;
    color: white;
    float: right;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.kiemtra-fake-notif-container .close-btn:hover {
    opacity: 1;
}

/* Animation fade-in/out mượt (hay hơn inline) */
@keyframes kiemtra-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes kiemtra-fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

.kiemtra-fake-notif-container.fade-in {
    display: block;
    animation: kiemtra-fadeIn 0.3s ease forwards;
}

.kiemtra-fake-notif-container.fade-out {
    animation: kiemtra-fadeOut 0.3s ease forwards;
}

/* Hover effect: scale nhẹ cho tương tác tốt */
.kiemtra-fake-notif-container:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ✅ Blur effect khi auth form active */
.kiemtra-auth-overlay.active ~ .main-content,
.kiemtra-auth-overlay.active ~ .test-header,
.kiemtra-auth-overlay.active ~ .container_2,
body:has(.kiemtra-auth-overlay.active) .main-content,
body:has(.kiemtra-auth-overlay.active) .test-header,
body:has(.kiemtra-auth-overlay.active) .container_2 {
    filter: blur(5px);
    pointer-events: none;
}

/* Đảm bảo overlay nằm trên cùng */
.kiemtra-auth-overlay {
    position: fixed;
    z-index: 99999 !important;
}

/* ✅ LOGOUT POPUP STYLES */
.kiemtra-logout-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.kiemtra-logout-popup-overlay.active {
    display: flex;
}

.kiemtra-logout-popup-container {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.kiemtra-logout-popup-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.kiemtra-logout-popup-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.kiemtra-logout-popup-header h3 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.kiemtra-logout-popup-body {
    padding: 30px;
    text-align: center;
}

.kiemtra-logout-popup-body p {
    font-size: 1rem;
    color: #495057;
    margin: 0;
    line-height: 1.6;
}

.kiemtra-logout-popup-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.kiemtra-popup-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 200;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kiemtra-btn-cancel {
    background: #6c757d;
    color: white;
}

.kiemtra-btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.kiemtra-btn-confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.kiemtra-btn-confirm:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .kiemtra-logout-popup-container {
        max-width: 90%;
        margin: 0 20px;
    }
    
    .kiemtra-logout-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .kiemtra-logout-popup-header i {
        font-size: 2rem;
    }
    
    .kiemtra-logout-popup-body {
        padding: 20px;
    }
    
    .kiemtra-logout-popup-footer {
        flex-direction: column;
    }
    
    .kiemtra-popup-btn {
        width: 100%;
    }
}

/* Style cho nút ẩn thông báo */
.btn-hide-notification {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    transition: color 0.2s;
}

.btn-hide-notification:hover {
    color: #dc3545;
}

.kiemtra-notification-item {
    position: relative; /* Để nút absolute hoạt động */
}

/* ============================================
   LANGUAGE SWITCHER - TOGGLE DESIGN
   ============================================ */

.kiemtra-language-switcher {
    position: relative;
}

/* Toggle Button */
.kiemtra-lang-toggle {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin: 0;
}

/* Hover effect với gradient background */
.kiemtra-lang-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.kiemtra-lang-toggle:hover::before {
    left: 100%;
}

.kiemtra-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.kiemtra-lang-toggle:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Flag container */
.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.kiemtra-lang-toggle:hover .lang-flag {
    transform: scale(1.1);
}

/* Language text */
.lang-text {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Switch icon animation */
.lang-switch-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: rgba(255, 255, 255, 0.7);
}

.kiemtra-lang-toggle:hover .lang-switch-icon {
    transform: rotate(180deg);
    color: white;
}

/* Loading state */
.kiemtra-lang-toggle.loading {
    pointer-events: none;
    opacity: 0.7;
}

.kiemtra-lang-toggle.loading .lang-flag {
    animation: flagFlip 0.6s ease-in-out;
}

.kiemtra-lang-toggle.loading .lang-text {
    animation: textFade 0.6s ease-in-out;
}

.kiemtra-lang-toggle.loading .lang-switch-icon {
    animation: iconSpin 0.8s linear infinite;
}

/* Keyframes */
@keyframes flagFlip {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Ripple effect khi click */
.kiemtra-lang-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.kiemtra-lang-toggle:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

/* Pulse animation để thu hút attention */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(255, 255, 255, 0.2);
    }
}

/* Thêm pulse effect khi hover lâu */
.kiemtra-lang-toggle:hover {
    animation: pulse 2s ease-in-out infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    
    .kiemtra-lang-toggle {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .lang-flag {
        width: 24px;
        height: 16px;
    }
    
    .lang-text {
        font-size: 13px;
    }
    
    .lang-switch-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .kiemtra-lang-toggle {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .lang-text {
        display: none;
    }
    
    .lang-switch-icon {
        display: none;
    }
    
    .lang-flag {
        width: 28px;
        height: 20px;
    }
}

/* Accessibility improvements */
.kiemtra-lang-toggle:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

.kiemtra-lang-toggle:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth transitions for all states */
.kiemtra-language-switcher * {
    box-sizing: border-box;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .kiemtra-lang-toggle {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .kiemtra-lang-toggle:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
    }
}

/* Gradient border effect (optional premium look) */
.kiemtra-lang-toggle.premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.kiemtra-lang-toggle.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* More Menu Styles */
.kiemtra-more-menu-wrapper {
    position: relative;
}

.kiemtra-more-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.kiemtra-more-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    margin-top: 5px;
    animation: fadeInDown 0.3s ease;
}

.kiemtra-more-menu-dropdown.active {
    display: block;
}

.kiemtra-more-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.kiemtra-more-menu-item:last-child {
    border-bottom: none;
}

.kiemtra-more-menu-item:hover {
    background: #f8f9fa;
    color: #007DB3;
}

.kiemtra-more-menu-item i {
    font-size: 16px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .kiemtra-more-menu-dropdown {
        position: static;
        box-shadow: none;
        border-top: 1px solid #e9ecef;
    }
}

/* ============================================
   MORE MENU - HEADER RIGHT POSITION
   ============================================ */

/* Wrapper cho More Menu ở header phải */
.kiemtra-user-info-section .kiemtra-more-menu-wrapper {
    position: relative;
}

/* Nút toggle More Menu */
.kiemtra-more-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f2f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0;
}

.kiemtra-more-menu-toggle:hover {
    background: #e4e6ea;
    transform: scale(1.05);
}

.kiemtra-more-menu-toggle i {
    color: #050505;
    font-size: 1.2rem;
}

/* Dropdown menu */
.kiemtra-user-info-section .kiemtra-more-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0; /* Căn phải */
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    animation: fadeInDown 0.3s ease;
    overflow: hidden;
}

.kiemtra-user-info-section .kiemtra-more-menu-dropdown.active {
    display: block;
}

/* Menu items */
.kiemtra-user-info-section .kiemtra-more-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.kiemtra-user-info-section .kiemtra-more-menu-item:last-child {
    border-bottom: none;
}

.kiemtra-user-info-section .kiemtra-more-menu-item:hover {
    background: #f8f9fa;
    color: #007DB3;
}

.kiemtra-user-info-section .kiemtra-more-menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .kiemtra-user-info-section .kiemtra-more-menu-wrapper {
        margin-left: 5px;
    }
    
    .kiemtra-more-menu-toggle {
        width: 35px;
        height: 35px;
    }
    
    .kiemtra-user-info-section .kiemtra-more-menu-dropdown {
        min-width: 200px;
        right: -10px; /* Điều chỉnh để không tràn màn hình mobile */
    }
}

@media (max-width: 768px) {
    .kiemtra-more-menu-wrapper {
        display: none !important;
    }
}

/* Desktop - giữ nguyên */
@media (min-width: 769px) {
    .kiemtra-more-menu-wrapper {
        display: block;
    }
}

/* ✅ MORE MENU STYLES - HỖ TRỢ NHIỀU ITEMS */
.kiemtra-more-menu-wrapper {
    position: relative;
    display: inline-block;
}

.kiemtra-more-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.kiemtra-more-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.kiemtra-more-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    max-width: 300px;
    max-height: 400px; /* ✅ THÊM MAX-HEIGHT */
    overflow-y: auto; /* ✅ CHO PHÉP SCROLL NẾU QUÁ NHIỀU ITEMS */
    z-index: 1001;
    animation: fadeInDown 0.3s ease-out;
}

.kiemtra-more-menu-dropdown.active {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kiemtra-more-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f1f1;
}

.kiemtra-more-menu-item:last-child {
    border-bottom: none;
}

.kiemtra-more-menu-item:hover {
    background: rgba(0, 125, 179, 0.05);
    color: #007DB3;
    padding-left: 20px; /* ✅ SLIDE EFFECT KHI HOVER */
}

.kiemtra-more-menu-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.kiemtra-more-menu-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ✅ CUSTOM SCROLLBAR CHO DROPDOWN */
.kiemtra-more-menu-dropdown::-webkit-scrollbar {
    width: 6px;
}

.kiemtra-more-menu-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.kiemtra-more-menu-dropdown::-webkit-scrollbar-thumb {
    background: #007DB3;
    border-radius: 10px;
}

.kiemtra-more-menu-dropdown::-webkit-scrollbar-thumb:hover {
    background: #056C99;
}

/* Responsive */
@media (max-width: 768px) {
    .kiemtra-more-menu-wrapper {
        display: none; /* Ẩn trên mobile vì đã có mobile footer menu */
    }
}