/* ==========================================================================
   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);
}

/* ==========================================================================
   Hero Section & Banners
   ========================================================================== */
.hero-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 50%, #1d4ed8 100%);
    padding: 3.5rem 2.5rem;
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-xl);
}

.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;
}

.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.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fef08a;
    margin-bottom: 1.5rem;
}

.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;
}

.hero-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    max-width: 680px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    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: 1rem;
    padding: 0.875rem 1.75rem;
    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);
}

/* ==========================================================================
   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);
}

.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 */
.custom-file-dropzone {
    border: 2px dashed var(--border-color);
    background: var(--bg-surface-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

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

.file-upload-icon {
    font-size: 2.25rem;
    color: var(--karsu-primary-light);
    margin-bottom: 0.5rem;
}

.file-info-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.selected-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--karsu-emerald);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ==========================================================================
   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: 10px;
    border-radius: var(--radius-pill);
    background-color: var(--bg-surface-subtle);
    overflow: hidden;
}

.custom-progress-bar {
    background: linear-gradient(90deg, var(--karsu-primary) 0%, var(--karsu-primary-light) 100%);
    border-radius: var(--radius-pill);
    transition: width 0.8s ease;
}

/* ==========================================================================
   Badges & Alerts
   ========================================================================== */
.badge-soft-primary {
    background: rgba(59, 130, 246, 0.15);
    color: var(--karsu-primary-light);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
}

.badge-soft-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--karsu-emerald);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
}

.badge-soft-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--karsu-accent);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
}

.badge-soft-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
}

/* ==========================================================================
   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%;
    }
}



