:root {
    --sdb-primary: #0d47a1;
    --sdb-primary-dark: #072b61;
    --sdb-primary-light: #1976d2;
    --sdb-primary-soft: #e8f1fd;
    --sdb-secondary: #475569;
    --sdb-success: #2e7d32;
    --sdb-warning: #ed6c02;
    --sdb-danger: #d32f2f;
    --sdb-info: #0288d1;
    --sdb-bg: #f4f6fa;
    --sdb-text-dark: #0f172a;
    --sdb-text-muted: #64748b;
    --sdb-footer-bg: #0d1e38;
    --sdb-footer-dark: #071324;
}

body.sdb-app-body {
    background-color: var(--sdb-bg);
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--sdb-text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.form-control-lg{
    font-size: 1rem;
}

/* Container kích thước chuẩn cho header, content và footer */
.sdb-header-container,
.sdb-body-container,
.sdb-footer-container {
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.sdb-main-content {
    flex: 1 0 auto;
    width: 100%;
}

.sdb-content-area {
    min-height: 500px;
}

/* ========================================================
   1. HEADER & THANH TIỆN ÍCH (TOPBAR)
   ======================================================== */
.sdb-site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 12px rgba(10, 31, 68, 0.08);
}

.sdb-topbar {
    background: linear-gradient(90deg, #07224d 0%, #0d3b82 100%);
    color: #e2e8f0;
    font-size: 12.5px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sdb-topbar-item {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
}

.sdb-topbar-item strong {
    color: #ffffff;
    font-weight: 600;
}

.sdb-topbar-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
}

.sdb-topbar-admin-link {
    color: #ffc107;
    text-decoration: none;
    font-size: 12px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sdb-topbar-admin-link:hover {
    background: #ffc107;
    color: #07224d;
    text-decoration: none;
}

/* ========================================================
   2. THANH ĐIỀU HƯỚNG CHÍNH (MAIN NAVBAR)
   ======================================================== */
.sdb-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}

.sdb-brand {
    text-decoration: none !important;
    padding: 0;
}

.sdb-brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.25);
    flex-shrink: 0;
}

.sdb-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sdb-school-title {
    font-size: 14.5px;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.sdb-app-title {
    font-size: 12px;
    color: #1e293b;
    line-height: 1.2;
    margin-top: 2px;
}

.badge-primary-soft {
    background-color: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Các liên kết điều hướng */
.sdb-nav-links .nav-item {
    margin: 0 3px;
}

.sdb-nav-link {
    font-weight: 600;
    font-size: 13.5px;
    color: #475569 !important;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.sdb-nav-link:hover {
    color: var(--sdb-primary) !important;
    background-color: #f1f5f9;
}

.sdb-nav-link.active {
    color: var(--sdb-primary) !important;
    background-color: var(--sdb-primary-soft);
    font-weight: 700;
}

/* Nút tài khoản người dùng */
.sdb-user-btn {
    border-radius: 20px;
    padding: 4px 14px 4px 5px;
    font-size: 13.5px;
    border-color: #cbd5e1;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
}

.sdb-user-btn:hover,
.sdb-user-btn:focus {
    border-color: var(--sdb-primary);
    color: var(--sdb-primary);
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(13, 71, 161, 0.15);
}

.sdb-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d47a1, #1e88e5);
    color: #ffffff;
    font-weight: 700;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.sdb-user-name {
    max-width: 150px;
}

.sdb-dropdown-menu {
    min-width: 240px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    margin-top: 8px;
}

.sdb-user-dropdown-header {
    background-color: #f8fafc;
}

.sdb-btn-login {
    border-radius: 6px;
    padding: 6px 16px;
}

.sdb-block-header-wrap:empty {
    display: none;
}

/* ========================================================
   3. FOOTER CHUYÊN NGHIỆP CHO NHÀ TRƯỜNG
   ======================================================== */
.sdb-footer {
    background-color: var(--sdb-footer-bg);
    color: #94a3b8;
    margin-top: auto;
}

.sdb-footer-top {
    background-color: var(--sdb-footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sdb-footer-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sdb-footer-school-title {
    font-size: 14px;
    letter-spacing: 0.3px;
}

.sdb-footer-desc {
    line-height: 1.6;
    color: #94a3b8 !important;
}

.sdb-footer-contact li {
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
    color: #cbd5e1;
}

.sdb-footer-contact i {
    margin-top: 3px;
}

.sdb-footer-heading {
    font-size: 13.5px;
    letter-spacing: 0.4px;
    border-bottom: 2px solid var(--sdb-primary-light);
    display: inline-block;
    padding-bottom: 5px;
}

.sdb-footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.sdb-footer-links li a:hover {
    color: #ffffff;
    transform: translateX(4px);
    text-decoration: none;
}

.sdb-footer-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sdb-block-footer-wrap:empty {
    display: none;
}

.sdb-footer-bottom {
    background-color: var(--sdb-footer-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12.5px;
}

.sdb-btn-scrollup {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.15);
    font-size: 12px;
    border-radius: 20px;
    padding: 3px 12px;
    transition: all 0.2s ease;
}

.sdb-btn-scrollup:hover {
    color: #ffffff;
    background-color: var(--sdb-primary);
    border-color: var(--sdb-primary);
    text-decoration: none;
}

/* ========================================================
   4. MÀN HÌNH ĐĂNG NHẬP (LOGIN WRAPPER)
   ======================================================== */
.sdb-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #07224d 0%, #1565c0 100%);
    padding: 30px 15px;
}

.card-login {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: #fff;
    border: none;
}

.card-login .card-header {
    background: linear-gradient(135deg, #072b61 0%, #0d47a1 100%);
    color: #fff;
    text-align: center;
    padding: 26px 20px;
    border-bottom: none;
}

.chromeframe {
    position: fixed !important;
    top: 0 !important;
    right: 0;
    left: 0;
    width: 100% !important;
    z-index: 99999999999999 !important;
    background-color: #ffff00 !important;
    color: #000 !important;
    height: 25px;
    line-height: 25px;
    padding: 0.2em 0;
    text-align: center !important;
}

#timeoutsess {
    display: none;
}

#timeoutsess a {
    color: #2f70a7 !important;
}

/* ========================================================
   5. ĐÁP ỨNG THIẾT BỊ DI ĐỘNG (RESPONSIVE)
   ======================================================== */
@media (max-width: 991.98px) {
    .sdb-header-container,
    .sdb-body-container,
    .sdb-footer-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .sdb-navbar-toggler {
        border-color: #cbd5e1;
        padding: 5px 8px;
    }

    .sdb-nav-links {
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
        margin-top: 10px;
    }

    .sdb-nav-link {
        padding: 10px 12px !important;
    }

    .sdb-user-actions {
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
    }

    .sdb-user-btn {
        width: 100%;
        justify-content: space-between;
    }

    .sdb-dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 5px;
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }

    .sdb-school-title {
        font-size: 13px;
    }
}
