/* ==========================================================================
   online.karsu.uz - Modern Design System & Stylesheet
   Qoraqalpoq Davlat Universiteti (KarSU) Double Degree Platform
   ========================================================================== */

:root {
    --font-family-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Brand Colors */
    --karsu-primary: #1e3a8a;       /* Deep Royal Blue */
    --karsu-primary-light: #3b82f6; /* Bright Azure */
    --karsu-primary-dark: #172554;  /* Midnight Navy */
    --karsu-accent: #f59e0b;        /* Gold / Amber */
    --karsu-accent-hover: #d97706;
    --karsu-emerald: #10b981;
    --karsu-cyan: #06b6d4;
    
    /* Light Theme Palette */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-surface-subtle: #f1f5f9;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 20px 30px -10px rgba(30, 58, 138, 0.15);
    
    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-pill: 9999px;
    
    /* Navbar height */
    --nav-height: 76px;
}

[data-bs-theme="dark"] {
    --bg-page: #0b0f19;
    --bg-surface: #131b2e;
    --bg-surface-elevated: #1a243b;
    --bg-surface-subtle: #1e293b;
    --border-color: #2a3754;
    --border-subtle: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-card-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
html, body {
    font-family: var(--font-family-base);
    background-color: var(--bg-page);
    color: var(--text-main);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

main > .container,
main > .container-fluid {
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 3.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    line-height: 1.65;
}

a {
    color: var(--karsu-primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--karsu-primary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.custom-navbar {
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1030;
}

[data-bs-theme="dark"] .custom-navbar {
    background: rgba(19, 27, 46, 0.85);
    border-bottom-color: var(--border-color);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.brand-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--karsu-primary) 0%, var(--karsu-primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    flex-shrink: 0;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-main-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.brand-sub-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--karsu-primary-light);
}

.custom-nav-link {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.custom-nav-link:hover,
.custom-nav-link.active {
    color: var(--karsu-primary) !important;
    background: rgba(59, 130, 246, 0.08);
}

[data-bs-theme="dark"] .custom-nav-link:hover,
[data-bs-theme="dark"] .custom-nav-link.active {
    color: #ffffff !important;
    background: rgba(59, 130, 246, 0.18);
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--karsu-primary) 0%, var(--karsu-primary-light) 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.25rem !important;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
    transition: all 0.25s ease;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
    color: #ffffff !important;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-subtle);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

/* ==========================================================================
   Mobile Side Drawer & Hamburger Toggler
   ========================================================================== */
.custom-drawer-toggler {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-drawer-toggler:hover {
    background: var(--border-color);
}

.custom-drawer-toggler .drawer-icon-bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--text-main);
    transition: all 0.25s ease;
}

/* Test Mode Banner Integration */
:root {
    --test-banner-offset: 0px;
}

body.has-test-banner {
    --test-banner-offset: 34px;
    padding-top: var(--test-banner-offset) !important;
}

body.has-test-banner #header .navbar {
    top: var(--test-banner-offset) !important;
}

/* Mobile Offcanvas Styles */
.mobile-side-drawer {
    top: var(--test-banner-offset, 0px) !important;
    height: calc(100% - var(--test-banner-offset, 0px)) !important;
    height: calc(100dvh - var(--test-banner-offset, 0px)) !important;
    width: 86vw !important;
    max-width: 340px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.15) !important;
    z-index: 1060;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

[data-bs-theme="dark"] .mobile-side-drawer {
    background: rgba(15, 23, 42, 0.97) !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5) !important;
}

.drawer-header {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.drawer-logo-img {
    height: 36px;
    width: auto;
    max-width: 44px;
    object-fit: contain;
    border-radius: 8px;
}

.drawer-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--karsu-primary) 0%, var(--karsu-primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
}

.drawer-brand-title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.drawer-brand-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--karsu-primary-light);
    display: block;
    text-transform: uppercase;
}

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding-left: 0.25rem;
}

/* Drawer Apply CTA Button */
.drawer-apply-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3) !important;
}

.drawer-apply-btn:hover,
.drawer-apply-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4) !important;
    color: #ffffff !important;
}

/* Drawer Nav List & Items */
.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    gap: 0.75rem;
}

.drawer-nav-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--karsu-primary);
    transform: translateX(3px);
}

.drawer-nav-item.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--karsu-primary);
    color: var(--karsu-primary);
    font-weight: 700;
}

[data-bs-theme="dark"] .drawer-nav-item.active {
    background: rgba(59, 130, 246, 0.22);
    border-color: var(--karsu-primary-light);
    color: #ffffff;
}

.drawer-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.icon-home { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.icon-quota { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.icon-stat { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.icon-status { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.drawer-item-content {
    flex-grow: 1;
}

.drawer-item-title {
    font-size: 0.92rem;
    font-weight: 600;
}

.drawer-item-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.drawer-nav-item:hover .drawer-item-arrow {
    transform: translateX(2px);
    color: var(--karsu-primary);
}

/* Language Vertical Items */
.drawer-lang-item {
    padding: 0.65rem 0.85rem;
}

.drawer-lang-icon {
    background: transparent !important;
    font-size: 1.25rem;
}

/* Help & Support Card */
.drawer-support-box {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.drawer-support-link {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
}

.drawer-support-link:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--karsu-primary);
}

[data-bs-theme="dark"] .drawer-support-link:hover {
    color: #ffffff;
}

.drawer-footer {
    border-top: 1px solid var(--border-color) !important;
}

/* Dark mode close button adaptation */
[data-bs-theme="dark"] .btn-close-white-adapt {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ==========================================================================
   Hero Section & Banners
   ========================================================================== */
.hero-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    background-color: #0b1938;
    padding: 3.5rem 2.5rem;
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 3.5rem;
    box-shadow: 0 20px 40px -15px rgba(10, 25, 65, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/banner-img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    filter: brightness(0.92) contrast(1.08);
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-wrapper:hover::before {
    transform: scale(1.02);
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 20, 52, 0.76) 0%, rgba(14, 38, 96, 0.58) 50%, rgba(20, 65, 150, 0.42) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-glow-1 {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-glow-2 {
    position: absolute;
    bottom: -20%;
    left: 10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fef08a;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 1.125rem;
    color: #e2e8f0;
    max-width: 680px;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-sub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.btn-hero-primary {
    background: var(--karsu-accent);
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transition: all 0.25s ease;
}
.btn-hero-primary:hover {
    background: #fcd34d;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Stat KPI Cards */
.stat-kpi-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    height: 100%;
}

.stat-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--karsu-primary-light);
}

.stat-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-kpi-info {
    flex-grow: 1;
}

.stat-kpi-number {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.stat-kpi-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Modern Cards & Features
   ========================================================================== */
.modern-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--karsu-primary-light);
}

.ready-apply-icon {
    font-size: 3.5rem;
}

.home-bottom-cta {
    background: linear-gradient(135deg, var(--karsu-primary) 0%, var(--karsu-primary-light) 100%);
}

.home-cta-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.home-cta-sub {
    color: rgba(255,255,255,0.92) !important;
    max-width: 600px;
}

/* ==========================================================================
   Mobile Responsive Rules for Home Page
   ========================================================================== */
@media (max-width: 767.98px) {
    .hero-wrapper {
        padding: 1.75rem 1.15rem;
        margin-bottom: 2rem;
        border-radius: var(--radius-lg);
    }

    .hero-badge {
        font-size: 0.76rem;
        padding: 0.3rem 0.75rem;
        margin-bottom: 0.85rem;
    }

    .hero-title {
        font-size: clamp(1.4rem, 6.2vw, 1.85rem);
        line-height: 1.22;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }

    .btn-hero-primary {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .hero-sub-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: 0.4rem;
    }

    .hero-sub-actions .btn-hero-outline {
        padding: 0.55rem 0.35rem;
        font-size: 0.76rem;
        font-weight: 600;
        justify-content: center;
        border-radius: var(--radius-md);
        gap: 0.25rem;
        white-space: nowrap;
    }

    .hero-sub-actions .btn-hero-outline i {
        font-size: 0.85rem;
    }

    /* Stat KPI Cards Mobile */
    .stat-kpi-card {
        padding: 0.85rem 1rem;
        gap: 0.85rem;
        border-radius: var(--radius-md);
    }

    .stat-kpi-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }

    .stat-kpi-number {
        font-size: 0.95rem;
        margin-bottom: 0.15rem;
    }

    .stat-kpi-label {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    /* Modern 2x2 Feature & Step Cards Mobile */
    .modern-card {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .feature-icon-box {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.15rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 8px !important;
    }

    .feature-title {
        font-size: 0.88rem;
        margin-bottom: 0.25rem;
    }

    .feature-desc {
        font-size: 0.76rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .step-card {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .step-number {
        font-size: 1.4rem;
        top: 0.65rem;
        right: 0.65rem;
        opacity: 0.4;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.82rem;
        margin-bottom: 1rem;
    }

    /* Documents Card Mobile */
    .docs-card {
        padding: 1.15rem !important;
    }

    .ready-apply-box {
        padding: 1.15rem !important;
    }

    .ready-apply-icon {
        font-size: 2.5rem;
    }

    /* Home CTA Mobile */
    .home-bottom-cta {
        padding: 1.75rem 1.15rem !important;
        border-radius: var(--radius-lg) !important;
    }

    .home-cta-title {
        font-size: 1.3rem;
    }

    .home-cta-sub {
        font-size: 0.88rem;
    }

    .home-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .home-cta-btn {
        width: 100%;
        font-size: 0.92rem !important;
        padding: 0.7rem 1.25rem !important;
    }
}

.feature-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.icon-box-blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--karsu-primary-light);
}

.icon-box-amber {
    background: rgba(245, 158, 11, 0.12);
    color: var(--karsu-accent);
}

.icon-box-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: var(--karsu-emerald);
}

.icon-box-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

/* Step cards */
.step-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--karsu-primary-light);
    box-shadow: var(--shadow-card-hover);
}

.step-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--border-color);
    line-height: 1;
}

[data-bs-theme="dark"] .step-number {
    color: #1e293b;
}

/* Partner Universities Card */
.partner-badge {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.25s ease;
}
.partner-badge:hover {
    background: var(--bg-surface);
    border-color: var(--karsu-primary-light);
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Multi-Step Application Form UI
   ========================================================================== */
.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .form-card {
        padding: 1.5rem;
    }
}

/* Wizard Steps Indicator */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    text-align: center;
    cursor: pointer;
    flex: 1;
}

.step-indicator {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.wizard-step.active .step-indicator {
    background: var(--karsu-primary);
    border-color: var(--karsu-primary-light);
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2);
}

.wizard-step.completed .step-indicator {
    background: var(--karsu-emerald);
    border-color: var(--karsu-emerald);
    color: #ffffff;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.wizard-step.active .step-label {
    color: var(--karsu-primary-light);
    font-weight: 700;
}

/* Form Controls & Inputs */
.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    background-color: var(--bg-surface-subtle);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-surface);
    border-color: var(--karsu-primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    color: var(--text-main);
}

/* Custom File Upload Box (Dropzone) */
.custom-file-dropzone {
    position: relative;
    border: 2px dashed var(--border-color);
    background: var(--bg-surface-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
}

.custom-file-dropzone:hover,
.custom-file-dropzone.dragover {
    border-color: var(--karsu-primary-light);
    background: rgba(59, 130, 246, 0.05);
}

.custom-file-dropzone.has-file {
    border-color: var(--karsu-emerald) !important;
    background: rgba(16, 185, 129, 0.06) !important;
}

.custom-file-dropzone.border-danger {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.06) !important;
}

/* Hidden native file input covering entire dropzone */
.dropzone-input-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    z-index: 5 !important;
    cursor: pointer !important;
}

.dropzone-input-wrapper input[type="file"],
.dropzone-input {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 5 !important;
    margin: 0 !important;
}

.dropzone-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    transition: transform 0.2s ease;
}

.custom-file-dropzone:hover .dropzone-icon-circle {
    transform: scale(1.08);
}

.dropzone-title {
    color: var(--text-main);
    font-size: 1rem;
}

.dropzone-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.dropzone-browse-btn {
    pointer-events: none;
    font-size: 0.85rem;
}

.dropzone-file-name {
    font-size: 0.95rem;
    word-break: break-all;
}

.dropzone-file-size {
    font-size: 0.8rem;
}

[data-bs-theme="dark"] .custom-file-dropzone {
    background: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .custom-file-dropzone:hover,
[data-bs-theme="dark"] .custom-file-dropzone.dragover {
    background: rgba(59, 130, 246, 0.1);
}

/* ==========================================================================
   Custom Dropdown (TomSelect) UI System
   ========================================================================== */
.ts-wrapper {
    width: 100%;
}

.ts-control {
    min-height: 48px !important;
    border-radius: var(--radius-md) !important;
    padding: 0.65rem 1rem !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-surface) !important;
    color: var(--text-main) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

.ts-control > input {
    color: var(--text-main) !important;
    font-size: 0.95rem !important;
}

.ts-control.focus {
    border-color: var(--karsu-primary-light) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.ts-wrapper.is-invalid .ts-control {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.ts-dropdown {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-surface) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18) !important;
    margin-top: 6px !important;
    padding: 6px !important;
    z-index: 1050 !important;
    max-height: 280px !important;
}

.ts-dropdown .dropdown-input-wrap {
    padding: 4px 4px 8px 4px;
}

.ts-dropdown .dropdown-input {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-surface-subtle) !important;
    color: var(--text-main) !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.88rem !important;
}

.ts-dropdown .option {
    padding: 0.65rem 0.85rem !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.92rem !important;
    color: var(--text-main) !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--karsu-primary) !important;
    font-weight: 600 !important;
}

.ts-dropdown .option.selected {
    background: var(--karsu-primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Dark Mode TomSelect */
[data-bs-theme="dark"] .ts-control {
    background: #131b2e !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-bs-theme="dark"] .ts-dropdown {
    background: #131b2e !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
}

[data-bs-theme="dark"] .ts-dropdown .option {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .ts-dropdown .option:hover,
[data-bs-theme="dark"] .ts-dropdown .option.active {
    background: rgba(59, 130, 246, 0.25) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .ts-dropdown .dropdown-input {
    background: #0b1120 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Modern Tables & Quotas
   ========================================================================== */
.table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.modern-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead th {
    background: var(--bg-surface-subtle);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.modern-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.925rem;
}

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

.modern-table tbody tr:hover td {
    background-color: rgba(59, 130, 246, 0.03);
}

/* Stat Progress Bars */
.stat-kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-kpi-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

.stat-kpi-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.custom-progress {
    height: 8px;
    border-radius: var(--radius-pill);
    background-color: rgba(203, 213, 225, 0.5);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.custom-progress-bar {
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
    border-radius: var(--radius-pill);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.custom-progress-bar-warning {
    background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%) !important;
}

.stat-item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.35rem;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stat-item-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 6px 18px -4px rgba(30, 58, 138, 0.08);
    transform: translateY(-1px);
}

.stat-counter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    padding: 0.45rem 0.95rem;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
    min-width: 75px;
    text-align: center;
}

.stat-counter-badge .current-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #047857;
    font-family: var(--font-family-monospace, monospace);
}

.stat-counter-badge .divider {
    font-size: 1rem;
    font-weight: 600;
    color: #10b981;
    margin: 0 1px;
}

.stat-counter-badge .total-num {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
    font-family: var(--font-family-monospace, monospace);
}

[data-bs-theme="dark"] .stat-counter-badge {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.35);
}

[data-bs-theme="dark"] .stat-counter-badge .current-num {
    color: #34d399;
}

[data-bs-theme="dark"] .stat-counter-badge .total-num {
    color: #6ee7b7;
}

[data-bs-theme="dark"] .custom-progress {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Badges & Alerts
   ========================================================================== */
.badge-soft-primary {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #1d4ed8 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-soft-success {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-soft-warning {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-soft-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

[data-bs-theme="dark"] .badge-soft-primary {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
}

[data-bs-theme="dark"] .badge-soft-success {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
}

[data-bs-theme="dark"] .badge-soft-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

[data-bs-theme="dark"] .badge-soft-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

/* Status Confirmation Modal Styles */
#statusModalHeader.bg-success,
#statusModalHeader.bg-danger {
    color: #ffffff !important;
}

#statusModalHeader.bg-success .modal-title,
#statusModalHeader.bg-danger .modal-title,
#statusModalHeader.bg-success i,
#statusModalHeader.bg-danger i,
#statusModalHeader.bg-success span,
#statusModalHeader.bg-danger span {
    color: #ffffff !important;
}

#statusModalHeader.bg-warning .modal-title,
#statusModalHeader.bg-warning i,
#statusModalHeader.bg-warning span {
    color: #0f172a !important;
}

#statusModalMessage {
    color: var(--text-main) !important;
    font-size: 1.05rem;
    font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.custom-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 0 2rem;
    color: var(--text-muted);
    margin-top: auto;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.footer-link {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.925rem;
    transition: all 0.2s ease;
}
.footer-link:hover {
    color: var(--karsu-primary-light);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.75rem;
    margin-top: 2.5rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   Success Receipt Card
   ========================================================================== */
.receipt-card {
    max-width: 640px;
    margin: 2rem auto;
    background: var(--bg-surface);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.success-icon-animated {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--karsu-emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Admin UI - Modern Vertical Sidebar Layout
   ========================================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-page);
}

/* Sidebar */
.admin-sidebar {
    width: 275px;
    background: #090d16;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1040;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] .admin-sidebar {
    background: #060911;
    border-right-color: #1e293b;
}

.admin-sidebar-header {
    padding: 1.5rem 1.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.admin-sidebar-menu {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-grow: 1;
    overflow-y: auto;
}

.admin-menu-header {
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    padding: 0.75rem 0.75rem 0.35rem;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    font-size: 0.925rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-sidebar-link i {
    font-size: 1.15rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.admin-sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar-link:hover i {
    color: var(--karsu-primary-light);
}

.admin-sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

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

.admin-sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.35);
}

.admin-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.admin-logout-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-logout-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.05);
}

/* Main content wrapper */
.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.admin-topbar {
    height: 68px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(12px);
}

.admin-content {
    padding: 2rem 2.25rem;
    flex-grow: 1;
}

.admin-footer-bar {
    padding: 1.25rem 2.25rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Dashboard UI Components */
.admin-welcome-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #38bdf8 100%);
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem;
    color: #ffffff;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
}

.admin-welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Modern KPI Cards */
.admin-kpi-grid-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-kpi-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.admin-kpi-grid-card.kpi-blue {
    border-left: 4px solid #2563eb;
}
.admin-kpi-grid-card.kpi-sky {
    border-left: 4px solid #0284c7;
}
.admin-kpi-grid-card.kpi-emerald {
    border-left: 4px solid #10b981;
}
.admin-kpi-grid-card.kpi-rose {
    border-left: 4px solid #ef4444;
}

.kpi-number-display {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

.kpi-title-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

/* Metric Rows / Interactive List */
.admin-metric-item {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.admin-metric-item:hover {
    background: var(--bg-surface);
    border-color: var(--karsu-primary-light);
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

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

/* Mobile Sidebar & Responsive adjustments */
.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1035;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-sidebar-backdrop.show {
        display: block;
    }

    .admin-topbar {
        padding: 0 1.25rem;
    }

    .admin-main-content {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Translation Management UI (Light & Dark Enhanced)
   ========================================================================== */
.lang-pill-badge {
    padding: 6px 14px;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}
.lang-pill-badge .lang-code {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--karsu-primary-light);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.translation-key-badge {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: rgba(37, 99, 235, 0.06);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.18);
    word-break: break-word;
    line-height: 1.4;
    display: inline-block;
    max-width: 100%;
}
[data-bs-theme="dark"] .translation-key-badge {
    background-color: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.25);
}
.trans-col-title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.trans-text {
    font-size: 0.875rem;
    color: var(--text-main);
    line-height: 1.5;
    word-break: break-word;
}
.trans-text.text-empty {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.8125rem;
}

/* Language flag indicators in translation index table */
.lang-flag-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}
.lang-flag-indicator.is-present {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
    color: var(--text-main);
    font-weight: 600;
}
.lang-flag-indicator.is-empty {
    opacity: 0.28;
    filter: grayscale(100%);
    border-color: var(--border-color);
    background: transparent;
}
.lang-flag-indicator:hover.is-present {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}


/* Remove default Bootstrap dropdown caret icons */
.dropdown-toggle::after,
.no-caret::after {
    display: none !important;
}

/* Admin Topbar Dropdowns */
.admin-topbar .dropdown {
    position: relative;
}
.admin-topbar .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-surface) !important;
}

/* Modern table single-line items & flexible layout */
.modern-table th,
.modern-table td .badge,
.modern-table td .btn {
    white-space: nowrap !important;
}

.modern-table td .badge,
.modern-table td .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    line-height: 1.25 !important;
}

/* ==========================================================================
   Bottom-Right Modern Toastr Notifications
   ========================================================================== */
.toast-notification-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1080;
    max-width: 420px;
    width: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.modern-toast-item {
    pointer-events: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modern-toast-item.toast-success {
    border-left: 5px solid #10b981;
}

.modern-toast-item.toast-danger {
    border-left: 5px solid #ef4444;
}

.modern-toast-item.toast-warning {
    border-left: 5px solid #f59e0b;
}

.modern-toast-item.toast-info {
    border-left: 5px solid #0284c7;
}

.modern-toast-item .toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.08);
}

.modern-toast-item.toast-success .toast-progress-bar {
    background: #10b981;
    animation: toastProgress 5s linear forwards;
}

.modern-toast-item.toast-danger .toast-progress-bar {
    background: #ef4444;
    animation: toastProgress 5s linear forwards;
}

.modern-toast-item.toast-warning .toast-progress-bar {
    background: #f59e0b;
    animation: toastProgress 5s linear forwards;
}

.modern-toast-item.toast-info .toast-progress-bar {
    background: #0284c7;
    animation: toastProgress 5s linear forwards;
}

.modern-toast-item.hide-animation {
    animation: toastSlideOut 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

@keyframes toastProgress {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* ==========================================================================
   DARK MODE — Bootstrap Component Overrides
   ========================================================================== */

/* ── Form controls ───────────────────────────────────────────────────── */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #1a243b;
    border-color: #2a3754;
    color: #f1f5f9;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #1e2d47;
    border-color: #3b82f6;
    color: #f1f5f9;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}
[data-bs-theme="dark"] .form-control::placeholder { color: #4b5e80; }
[data-bs-theme="dark"] .input-group-text {
    background-color: #141c30;
    border-color: #2a3754;
    color: #94a3b8;
}

/* ── Cards ───────────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .card {
    background-color: #131b2e;
    border-color: #2a3754;
}
[data-bs-theme="dark"] .card-header {
    background-color: #1a243b;
    border-bottom-color: #2a3754;
}
[data-bs-theme="dark"] .card-footer {
    background-color: #1a243b;
    border-top-color: #2a3754;
}
[data-bs-theme="dark"] .bg-body-tertiary { background-color: #141c30 !important; }
[data-bs-theme="dark"] .bg-body { background-color: #0b0f19 !important; }
[data-bs-theme="dark"] .bg-body-secondary { background-color: #111827 !important; }

/* ── Tables ──────────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .table {
    --bs-table-bg: #131b2e;
    --bs-table-border-color: #2a3754;
    --bs-table-striped-bg: #1a243b;
    --bs-table-hover-bg: #1e2d47;
    color: #f1f5f9;
}
[data-bs-theme="dark"] .table thead th {
    background-color: #141c30;
    color: #94a3b8;
    border-bottom-color: #2a3754;
}
[data-bs-theme="dark"] .table td,
[data-bs-theme="dark"] .table th { border-color: #2a3754; }
[data-bs-theme="dark"] .table-bordered { border-color: #2a3754; }

/* ── Alerts ──────────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(245,158,11,0.15);
    border-color: rgba(245,158,11,0.3);
    color: #fbbf24;
}
[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.3);
    color: #f87171;
}
[data-bs-theme="dark"] .alert-success {
    background-color: rgba(16,185,129,0.15);
    border-color: rgba(16,185,129,0.3);
    color: #34d399;
}
[data-bs-theme="dark"] .alert-info {
    background-color: rgba(6,182,212,0.15);
    border-color: rgba(6,182,212,0.3);
    color: #22d3ee;
}

/* ── Dropdowns ───────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #1a243b;
    border-color: #2a3754;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
[data-bs-theme="dark"] .dropdown-item { color: #cbd5e1; }
[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: #22304d;
    color: #f1f5f9;
}
[data-bs-theme="dark"] .dropdown-item.active {
    background-color: #1e40af;
    color: #fff;
}
[data-bs-theme="dark"] .dropdown-divider { border-color: #2a3754; }

/* ── Modals ──────────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .modal-content {
    background-color: #131b2e;
    border-color: #2a3754;
}
[data-bs-theme="dark"] .modal-header { border-bottom-color: #2a3754; }
[data-bs-theme="dark"] .modal-footer { border-top-color: #2a3754; }

/* ── Accordion ───────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .accordion-item {
    background-color: #131b2e;
    border-color: #2a3754;
}
[data-bs-theme="dark"] .accordion-button {
    background-color: #1a243b;
    color: #f1f5f9;
    box-shadow: none;
}
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #1e2d47;
    color: #60a5fa;
}
[data-bs-theme="dark"] .accordion-button::after { filter: invert(1) brightness(0.8); }
[data-bs-theme="dark"] .accordion-body {
    background-color: #131b2e;
    color: #cbd5e1;
}

/* ── Tabs / Nav-pills ────────────────────────────────────────────────── */
[data-bs-theme="dark"] .nav-tabs { border-bottom-color: #2a3754; }
[data-bs-theme="dark"] .nav-tabs .nav-link { color: #94a3b8; }
[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    border-color: #2a3754 #2a3754 transparent;
    color: #f1f5f9;
}
[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #131b2e;
    border-color: #2a3754 #2a3754 #131b2e;
    color: #60a5fa;
}
[data-bs-theme="dark"] .nav-pills .nav-link { color: #94a3b8; }
[data-bs-theme="dark"] .nav-pills .nav-link:hover {
    background-color: #1a243b;
    color: #f1f5f9;
}
[data-bs-theme="dark"] .nav-pills .nav-link.active {
    background-color: rgba(30,58,138,0.85);
    color: #fff;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .btn-outline-secondary {
    color: #94a3b8;
    border-color: #2a3754;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #2a3754;
    border-color: #3b4f6e;
    color: #f1f5f9;
}
[data-bs-theme="dark"] .btn-light {
    background-color: #1a243b;
    border-color: #2a3754;
    color: #f1f5f9;
}
[data-bs-theme="dark"] .btn-light:hover {
    background-color: #22304d;
    color: #fff;
}

/* ── Borders ─────────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .border     { border-color: #2a3754 !important; }
[data-bs-theme="dark"] .border-top { border-top-color: #2a3754 !important; }
[data-bs-theme="dark"] .border-bottom { border-bottom-color: #2a3754 !important; }
[data-bs-theme="dark"] .border-end   { border-right-color: #2a3754 !important; }
[data-bs-theme="dark"] .border-start { border-left-color: #2a3754 !important; }

/* ── Text helpers ────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .bg-light { background-color: #1a243b !important; }
[data-bs-theme="dark"] .text-dark { color: #f1f5f9 !important; }
[data-bs-theme="dark"] .text-body { color: #e2e8f0 !important; }
[data-bs-theme="dark"] .text-muted { color: #64748b !important; }

/* ── Pagination ──────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .page-item .page-link {
    background-color: #131b2e;
    border-color: #2a3754;
    color: #94a3b8;
}
[data-bs-theme="dark"] .page-item.active .page-link {
    background-color: #1e40af;
    border-color: #1e40af;
    color: #fff;
}
[data-bs-theme="dark"] .page-item.disabled .page-link {
    background-color: #0f1624;
    border-color: #1e293b;
    color: #4b5e80;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .breadcrumb-item a { color: #60a5fa; }
[data-bs-theme="dark"] .breadcrumb-item.active { color: #94a3b8; }
[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before { color: #4b5e80; }

/* ── Scrollbar ───────────────────────────────────────────────────────── */
[data-bs-theme="dark"] ::-webkit-scrollbar { width: 8px; height: 8px; }
[data-bs-theme="dark"] ::-webkit-scrollbar-track { background: #0b0f19; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: #2a3754; border-radius: 4px; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #3b4f6e; }
/* ── DTM Print Sheet Isolated Light Mode ─────────────────────────────── */
.dtm-print-sheet,
.dtm-print-sheet *,
[data-bs-theme="dark"] .dtm-print-sheet,
[data-bs-theme="dark"] .dtm-print-sheet * {
    color-scheme: light !important;
}

[data-bs-theme="dark"] .dtm-print-sheet {
    background-color: #ffffff !important;
    color: #111827 !important;
}

[data-bs-theme="dark"] .dtm-print-sheet .bg-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

[data-bs-theme="dark"] .dtm-print-sheet .bg-white {
    background-color: #ffffff !important;
    color: #212529 !important;
}

[data-bs-theme="dark"] .dtm-print-sheet .text-dark {
    color: #212529 !important;
}

[data-bs-theme="dark"] .dtm-print-sheet .border {
    border-color: #dee2e6 !important;
}

/* ── Print Utilities ─────────────────────────────────────────────────── */
.print-only {
    display: none !important;
}

@media print {
    .print-only {
        display: block !important;
    }
}
