/* ==========================================================
   GIAO DIỆN HỌC THUẬT CAO CẤP & HIỆN ĐẠI (EDTECH MODERN UI)
   Tích hợp Font Be Vietnam Pro, DataTables, Chart.js, AOS
   Tối ưu hiển thị Responsive Mobile & PC (Fluid Typography)
   Thiết kế 2D phẳng, sắc nét, chuẩn 5px border-radius
   100% Không Emoji - Tích hợp Bootstrap 5 & SVG Icons
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --academic-navy: #091e42;
    --academic-navy-dark: #051329;
    --academic-primary: #185adb;
    --academic-primary-hover: #0c42ad;
    --academic-primary-light: #edf3ff;
    --academic-secondary: #475569;
    --academic-slate: #1e293b;
    --academic-muted: #64748b;
    --academic-border: #e2e8f0;
    --academic-border-subtle: #cbd5e1;
    --academic-bg: #f8fafc;
    --academic-surface: #ffffff;
    --academic-success: #059669;
    --academic-success-light: #ecfdf5;
    --academic-warning: #d97706;
    --academic-warning-light: #fffbeb;
    --academic-danger: #dc2626;
    --academic-danger-light: #fef2f2;
    --radius-standard: 5px !important;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--academic-bg);
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--academic-slate);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   FLUID RESPONSIVE TYPOGRAPHY (MOBILE & PC)
   ========================================================== */
h1, .h1 {
    font-size: clamp(1.35rem, 3.8vw, 1.85rem);
    font-weight: 800;
}

h2, .h2 {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 700;
}

h3, .h3 {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 700;
}

.academic-hero-title {
    font-size: clamp(1.25rem, 3.5vw, 1.8rem);
    font-weight: 800;
    color: var(--academic-navy);
    letter-spacing: -0.4px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.academic-card-title {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    color: var(--academic-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* QUY CHUẨN BO GÓC 5PX TUYỆT ĐỐI */
button, 
input, 
select, 
textarea, 
.card, 
.modal-content, 
.btn, 
.badge, 
.alert, 
.input-group-text,
.table-responsive,
.nav-pills .nav-link,
.dropdown-menu,
.pagination .page-item .page-link,
.avatar-box,
.stat-widget,
.hero-box,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.chart-container {
    border-radius: var(--radius-standard);
}

/* ==========================================================
   HỆ THỐNG KEYFRAMES ANIMATION MƯỢT MÀ
   ========================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes alertSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(5, 150, 105, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
    }
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* NAVBAR CAO CẤP */
.academic-navbar {
    background: rgba(9, 30, 66, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(9, 30, 66, 0.15);
    transition: all 0.3s ease;
}

.academic-navbar .navbar-brand {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-navbar-logo {
    height: 42px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: transform 0.25s ease;
}

.brand-navbar-logo:hover {
    transform: scale(1.03);
}

.login-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.login-logo-img {
    max-width: 260px;
    height: auto;
    max-height: 75px;
    object-fit: contain;
    display: block;
    margin: 0 auto 16px auto;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: transform 0.25s ease;
}

.brand-crest {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #185adb, #0284c7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(24, 90, 219, 0.35);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-crest:hover {
    transform: rotate(5deg) scale(1.08);
}

.academic-navbar .nav-link {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
}

.academic-navbar .nav-link:hover,
.academic-navbar .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* HERO SECTION / BANNER HỌC THUẬT */
.academic-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--academic-border);
    padding: clamp(16px, 3vw, 28px);
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.academic-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24, 90, 219, 0.05));
    pointer-events: none;
}

.academic-hero-desc {
    font-size: clamp(12.5px, 2vw, 13.5px);
    color: var(--academic-muted);
    margin-bottom: 0;
}

/* THẺ CARD HIỆN ĐẠI */
.academic-card {
    background-color: var(--academic-surface);
    border: 1px solid var(--academic-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease, 
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.academic-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.academic-card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--academic-border);
    padding: clamp(12px, 2.5vw, 18px) clamp(14px, 3vw, 22px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.academic-card-subtitle {
    font-size: 12.5px;
    color: var(--academic-muted);
    margin-top: 2px;
    margin-bottom: 0;
}

/* NÚT BẤM (BUTTONS) CÓ RIPPLE & MICRO-INTERACTION */
.btn {
    font-weight: 600;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.1px;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-academic-blue {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid #1e40af;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-academic-blue:hover, 
.btn-academic-blue:focus {
    background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.btn-outline-academic {
    background-color: #ffffff;
    color: var(--academic-navy);
    border: 1px solid var(--academic-border);
}

.btn-outline-academic:hover {
    background-color: #f1f5f9;
    border-color: var(--academic-slate);
    color: var(--academic-navy);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnimation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

/* FORM VÀ Ô NHẬP LIỆU */
.form-label {
    font-weight: 700;
    color: var(--academic-slate);
    font-size: 13px;
    margin-bottom: 6px;
}

.form-control {
    border: 1px solid var(--academic-border);
    font-size: 14px;
    padding: 10px 14px;
    color: var(--academic-slate);
    background-color: #ffffff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus {
    border-color: var(--academic-primary);
    box-shadow: 0 0 0 4px rgba(24, 90, 219, 0.12);
    transform: translateY(-1px);
}

.input-group-text {
    background-color: #f8fafc;
    border-color: var(--academic-border);
    color: var(--academic-muted);
    padding: 10px 14px;
}

/* THÔNG BÁO ALERT */
.alert {
    animation: alertSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* BẢNG HỒ SƠ HỌC SINH HIỆN ĐẠI (KHÔNG LỒNG CARD - TIÊU ĐỀ NỀN TỐI CHỮ TRẮNG) */
.table-responsive {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.table-academic {
    width: 100% !important;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 640px;
    border: 1px solid var(--academic-border);
    border-radius: 5px !important;
    overflow: hidden;
}

.table-academic thead th {
    background-color: #091e42 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 13px 18px;
    border: none !important;
    border-bottom: 2px solid #185adb !important;
    white-space: nowrap;
    vertical-align: middle;
}

/* Biểu tượng sắp xếp DataTables trên nền tối tiêu đề */
table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting_desc:after {
    color: #ffffff !important;
    opacity: 0.6 !important;
}

table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_desc:after {
    opacity: 1 !important;
    color: #93c5fd !important;
}

.table-academic tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 13.5px;
    color: var(--academic-slate);
    background-color: #ffffff;
}

.table-academic tbody tr:last-child td {
    border-bottom: none;
}

.table-academic tbody tr:hover td {
    background-color: #f8fafc;
}

/* NÚT XEM CHI TIẾT (CHỮ TRẮNG NỔI BẬT) */
.btn-view-student {
    background-color: #185adb !important;
    color: #ffffff !important;
    border: 1px solid #185adb !important;
    border-radius: 5px !important;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(24, 90, 219, 0.2);
}

.btn-view-student:hover {
    background-color: #0c42ad !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(24, 90, 219, 0.45) !important;
    transform: translateY(-1px);
}

/* ==========================================================
   TÙY BIẾN DATATABLES (CÁC PHẦN JS XỬ LÝ ĐỔI THÀNH CHỮ TRẮNG)
   ========================================================== */
.dataTables_wrapper {
    padding-top: 4px;
}

.dataTables_wrapper .dataTables_length {
    margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #dadce0;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--academic-slate);
    outline: none;
    border-radius: 5px !important;
    background-color: #ffffff;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dadce0;
    padding: 7px 14px;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
    border-radius: 5px !important;
    background-color: #ffffff;
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.dataTables_wrapper .dataTables_info {
    font-size: 12.5px;
    color: var(--academic-muted);
    padding-top: 14px;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 10px;
}

.dataTables_wrapper .pagination .page-item .page-link {
    border: 1px solid var(--academic-border);
    color: var(--academic-slate);
    font-size: 13px;
    font-weight: 600;
    margin: 0 2px;
    border-radius: 5px !important;
    padding: 6px 12px;
    transition: all 0.15s ease;
}

/* PHẦN JS XỬ LÝ PHÂN TRANG ACTIVE: CHỮ TRẮNG */
.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: #185adb !important;
    border-color: #185adb !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(24, 90, 219, 0.3);
}

.dataTables_wrapper .pagination .page-item .page-link:hover {
    background-color: #f1f5f9;
    border-color: var(--academic-slate);
}

/* PHẦN JS XỬ LÝ THÔNG BÁO PROCESSING: CHỮ TRẮNG TRÊN NỀN TỐI */
.dataTables_wrapper .dataTables_processing {
    background-color: rgba(9, 30, 66, 0.94) !important;
    color: #ffffff !important;
    border-radius: 5px !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 14px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 100;
}

/* ==========================================================
   WIDGET ĐẾM NGƯỢC (TẾT NGUYÊN ĐÁN & NGHỈ HÈ)
   ========================================================== */
.countdown-card {
    background-color: var(--academic-surface);
    border: 1px solid var(--academic-border);
    border-radius: 5px !important;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.countdown-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.countdown-card-tet {
    border-top: 3px solid #dc2626 !important;
}

.countdown-card-he {
    border-top: 3px solid #059669 !important;
}

.countdown-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--academic-navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.countdown-unit {
    background-color: #091e42;
    border-radius: 5px !important;
    padding: 10px 4px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.countdown-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.1;
    display: block;
}

.countdown-lbl {
    font-size: 10.5px;
    font-weight: 600;
    color: #93c5fd !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

/* NÚT MỞ SIDEBAR TRÊN MOBILE (OFFCANVAS TOGGLE) */
.mobile-sidebar-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1040;
    background-color: #091e42;
    color: #ffffff !important;
    border: 1px solid #1e3a8a;
    border-radius: 5px !important;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(9, 30, 66, 0.35);
    transition: all 0.25s ease;
}

.mobile-sidebar-btn:hover {
    background-color: #185adb;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(24, 90, 219, 0.45);
}

.offcanvas-academic {
    border-radius: 5px 0 0 5px !important;
}

.offcanvas-academic .offcanvas-header {
    background-color: #091e42;
    color: #ffffff;
    border-bottom: 2px solid #185adb;
}

/* ==========================================================
   KHỐI BIỂU ĐỒ CHART.JS (ACADEMIC ANALYTICS)
   ========================================================== */
.chart-card {
    background: #ffffff;
    border: 1px solid var(--academic-border);
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.chart-wrapper {
    position: relative;
    height: 240px;
    width: 100%;
}

/* ==========================================================
   GOOGLE STYLE INPUTS (PHẲNG, SẮC NÉT, BO GÓC 5PX)
   ========================================================== */
.google-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #dadce0;
    background-color: #ffffff;
    border-radius: 5px !important;
    transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.google-input-group:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.google-input-icon {
    padding: 0 12px 0 14px;
    color: #5f6368;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 14px 12px 0;
    font-size: 14px;
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #202124;
    border-radius: 0 5px 5px 0 !important;
}

.google-input::placeholder {
    color: #80868b;
    font-size: 13.5px;
}

/* NÚT BẤM PHẲNG HIỆU ỨNG ÁNH SÁNG (NON-3D LUMINOUS BUTTON) */
.btn-google-primary {
    background-color: #1a73e8;
    color: #ffffff !important;
    border: 1px solid #1a73e8;
    border-radius: 5px !important;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    letter-spacing: 0.15px;
    position: relative;
    overflow: hidden;
    box-shadow: none !important; /* Tuyệt đối không 3D */
    transition: background-color 0.25s ease, 
                border-color 0.25s ease, 
                box-shadow 0.35s ease;
}

/* Luồng sáng quét ngang qua nút (Luminous light sweep) */
.btn-google-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.35) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.btn-google-primary:hover::before {
    left: 180%;
}

.btn-google-primary:hover {
    background-color: #1557b0;
    border-color: #1557b0;
    /* Hiệu ứng ánh sáng tỏa sáng xung quanh nút */
    box-shadow: 0 0 16px rgba(26, 115, 232, 0.45) !important;
}

.btn-google-primary:focus {
    background-color: #1557b0;
    border-color: #1557b0;
    box-shadow: 0 0 18px rgba(26, 115, 232, 0.5) !important;
}

/* LOGO HỆ THỐNG / FORM ĐĂNG NHẬP */
.login-logo-container {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px;
    margin-bottom: 14px;
}

.login-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-crest-logo {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

/* AVATAR BOX 2D PHẲNG - KHÔNG NỔI 3D, KHÔNG GRADIENT, KHÔNG XOAY */
.avatar-box {
    width: 36px;
    height: 36px;
    background-color: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 5px !important;
    flex-shrink: 0;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.table-academic tbody tr:hover .avatar-box {
    transform: none !important;
    box-shadow: none !important;
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

#modalStudentAvatar {
    background-color: #f8fafc;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: none !important;
    transform: none !important;
}

/* BADGES HỌC THUẬT */
.badge-academic {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 10px;
    font-family: 'JetBrains Mono', monospace;
}

.badge-custom-field {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 11.5px;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.badge-custom-field:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

/* PULSE STATUS DOT */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--academic-success);
    border-radius: 50% !important;
    display: inline-block;
    animation: pulseGlow 2s infinite;
}

/* DOSSIER MODAL */
.modal.fade .modal-dialog {
    transform: scale(0.96) translateY(-10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.dossier-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dossier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background-color: #ffffff;
    border: 1px solid var(--academic-border);
    margin-bottom: 8px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.dossier-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transform: translateX(2px);
}

.dossier-item:last-child {
    margin-bottom: 0;
}

.dossier-label {
    font-weight: 600;
    color: var(--academic-muted);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dossier-value {
    font-weight: 700;
    color: var(--academic-navy);
    font-size: 13.5px;
    text-align: right;
}

/* STAT WIDGET TRONG SIDEBAR */
.stat-widget {
    background: #ffffff;
    border: 1px solid var(--academic-border);
    padding: 18px;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.stat-widget::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #185adb, #0284c7);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.stat-widget-num {
    font-size: clamp(22px, 3.5vw, 28px);
    font-weight: 800;
    color: var(--academic-navy);
    line-height: 1;
    margin-top: 6px;
}

/* CODE CHỮ MONO */
code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

/* MEDIA QUERIES CHO MOBILE */
@media (max-width: 576px) {
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        margin-top: 8px;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
    }
}

/* ==========================================================
   KHỐI NHÀ TÀI TRỢ & ĐỐI TÁC DỊCH VỤ (FOOTER & SLIDER 100PX)
   ========================================================== */
.sponsor-section {
    padding: 30px 0 10px 0;
}

.sponsor-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    border-radius: 5px !important;
}

.sponsor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.sponsor-avatar {
    border-radius: 5px !important;
    flex-shrink: 0;
}

/* SLIDER CHẠY LOGO 100PX NHÀ CUNG CẤP DỊCH VỤ */
.provider-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 15px 0;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.provider-slider-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: providerMarqueeScroll 30s linear infinite;
}

.provider-slider-wrapper:hover .provider-slider-track {
    animation-play-state: paused;
}

@keyframes providerMarqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.provider-logo-card {
    width: 160px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 5px !important;
    padding: 12px 10px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    user-select: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.provider-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(24, 90, 219, 0.14);
    border-color: #185adb;
}

.provider-logo-card:focus {
    outline: 2px solid #185adb;
    outline-offset: 2px;
}

.provider-logo-img-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 5px !important;
    padding: 8px;
    transition: background-color 0.2s ease;
}

.provider-logo-card:hover .provider-logo-img-wrapper {
    background: #ffffff;
}

.provider-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.provider-logo-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.provider-logo-badge {
    font-size: 11px;
    color: #185adb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 5px !important;
    padding: 2px 6px;
    margin-top: 6px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* MODAL CHI TIẾT NHÀ CUNG CẤP DỊCH VỤ */
.provider-detail-modal .modal-content {
    border-radius: 5px !important;
    border: 1px solid #cbd5e1;
    overflow: hidden;
}

.provider-detail-modal .modal-header {
    background-color: #091e42;
    color: #ffffff;
    border-bottom: 2px solid #185adb;
    border-radius: 5px 5px 0 0 !important;
}

.provider-detail-modal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.provider-detail-logo-box {
    width: 120px;
    height: 120px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 5px !important;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.provider-detail-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   ADMIN DASHBOARD SIDEBAR & PROFESSIONAL LAYOUT
   ========================================================================== */

#adminAppWrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8fafc;
}

#adminTopNavbar {
    background-color: #0b192c;
    border-bottom: 2px solid #1e3a8a;
    padding: 0 1.25rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.admin-sidebar-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 5px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #93c5fd;
}

#adminBodyContainer {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 60px);
    position: relative;
}

/* Left Admin Sidebar */
#adminSidebar {
    width: 260px;
    background: linear-gradient(180deg, #0b192c 0%, #0d254c 100%);
    border-right: 1px solid #1e3a8a;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1020;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar for Sidebar */
#adminSidebar::-webkit-scrollbar {
    width: 5px;
}
#adminSidebar::-webkit-scrollbar-track {
    background: #0b192c;
}
#adminSidebar::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 5px;
}

/* Admin Profile Card in Sidebar */
.admin-sidebar-user {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 5px !important;
    background: linear-gradient(135deg, #185adb, #0284c7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(24, 90, 219, 0.4);
}

.admin-user-info {
    overflow: hidden;
    white-space: nowrap;
}

.admin-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.admin-user-status {
    font-size: 11.5px;
    color: #93c5fd;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    display: inline-block;
}

/* Sidebar Navigation Sections */
.admin-sidebar-nav {
    padding: 14px 10px;
    flex: 1;
}

.admin-nav-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    padding: 10px 12px 6px 12px;
    white-space: nowrap;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px !important;
    margin-bottom: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-sidebar-link i {
    font-size: 17px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: #93c5fd;
    transition: color 0.2s ease;
}

.admin-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(3px);
}

.admin-sidebar-link:hover i {
    color: #60a5fa;
}

.admin-sidebar-link.active {
    background: linear-gradient(90deg, #185adb, #1d4ed8);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(24, 90, 219, 0.35);
}

.admin-sidebar-link.active i {
    color: #ffffff;
}

/* Sidebar Collapsed State (Desktop) */
#adminSidebar.collapsed {
    width: 70px;
}

#adminSidebar.collapsed .admin-user-info,
#adminSidebar.collapsed .admin-nav-header,
#adminSidebar.collapsed .admin-sidebar-link span {
    display: none;
}

#adminSidebar.collapsed .admin-sidebar-user {
    justify-content: center;
    padding: 14px 8px;
}

#adminSidebar.collapsed .admin-sidebar-link {
    justify-content: center;
    padding: 10px;
    transform: none;
}

/* Main Content Area */
#adminMainContent {
    flex: 1;
    min-width: 0;
    padding: 24px 28px;
    background-color: #f8fafc;
    overflow-y: auto;
}

/* Mobile Offcanvas / Responsive */
#adminBackdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 25, 44, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1015;
}

@media (max-width: 991.98px) {
    #adminSidebar {
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.25);
    }
    #adminSidebar.show-mobile {
        transform: translateX(0);
    }
    #adminBackdrop.show {
        display: block;
    }
    #adminMainContent {
        padding: 16px;
    }
}

/* ==========================================================================
   CUSTOM CURSOR SYSTEM (.CUR)
   ========================================================================== */

/* Trợ lực con chuột cho các thành phần tương tác */
.custom-cursor-interactive,
a, button, [role="button"], input[type="submit"], input[type="button"],
input[type="reset"], .btn, select, label, .clickable, .pointer {
    transition: cursor 0.1s ease;
}

/* ==========================================================================
   GOOGLE INPUT & MODERN LOGIN SYSTEM (FLAT 2D - 5PX RADIUS)
   ========================================================================== */
.login-logo-img {
    max-height: 64px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    transition: transform 0.25s ease;
}

.login-logo-img:hover {
    transform: scale(1.03);
}

.google-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-standard);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.google-input-group:focus-within {
    border-color: var(--academic-primary);
    box-shadow: 0 0 0 3px rgba(24, 90, 219, 0.15);
}

.google-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #64748b;
    font-size: 1.1rem;
    pointer-events: none;
}

.google-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 12px 10px 0;
    font-size: 14.5px;
    color: var(--academic-slate);
    font-family: inherit;
    width: 100%;
}

.google-input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.btn-google-primary {
    background-color: var(--academic-primary);
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-standard);
    padding: 10px 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(24, 90, 219, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-google-primary:hover {
    background-color: var(--academic-primary-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(24, 90, 219, 0.3);
}

.btn-google-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(24, 90, 219, 0.2);
}

