@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@300;400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700;800;900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fbf9f6; /* Warm premium warm-white linen secondary backdrop */
    --accent-teal: #6c786a; /* Darker sage green for premium readability in light mode */
    --accent-teal-hover: #828e80;
    --accent-gold: #a78f76; /* The signature Swastiyogashala gold from expertechno.com */
    --accent-gold-hover: #c1a58c;
    --text-primary: #1c1917; /* High-contrast rich charcoal black */
    --text-secondary: #44403c; /* Stone-grey for secondary description copy */
    --text-muted: #78716c; /* Muted grey for hints and dates */
    --border-color: rgba(167, 143, 118, 0.22);
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(167, 143, 118, 0.16);
    --glass-shadow: 0 8px 32px 0 rgba(167, 143, 118, 0.08);
    --font-serif: 'Montserrat', sans-serif;
    --font-sans: 'Kumbh Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Premium Zen State & Action variables */
    --accent-success: #5d7a68;
    --accent-success-hover: #4e6757;
    --accent-success-bg: rgba(93, 122, 104, 0.1);
    --accent-success-border: rgba(93, 122, 104, 0.2);
    
    --accent-danger: #b26b67;
    --accent-danger-hover: #9c5c58;
    --accent-danger-bg: rgba(178, 107, 103, 0.1);
    --accent-danger-border: rgba(178, 107, 103, 0.2);

    --accent-warning: #bda072;
    --accent-warning-hover: #a88d61;
    --accent-warning-bg: rgba(189, 160, 114, 0.1);
    --accent-warning-border: rgba(189, 160, 114, 0.2);

    --accent-info: #6a8a9f;
    --accent-info-hover: #597587;
    --accent-info-bg: rgba(106, 138, 159, 0.1);
    --accent-info-border: rgba(106, 138, 159, 0.2);
    
    /* Modern shadow systems */
    --shadow-sm: 0 2px 8px rgba(167, 143, 118, 0.06);
    --shadow-md: 0 8px 24px rgba(167, 143, 118, 0.08);
    --shadow-lg: 0 16px 40px rgba(167, 143, 118, 0.12);
}

/* Reset and Core Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: var(--font-serif);
    letter-spacing: 0.3px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(167, 143, 118, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(142, 153, 139, 0.12) 0%, transparent 45%);
    background-attachment: fixed;
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-teal-hover);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Admin workspace: use the screen properly so long role-based menus stay tidy. */
@media (min-width: 901px) {
    body:has(> header:not(.sy-site-header) a[href*="/admin/"]) > header > .container,
    body:has(> header:not(.sy-site-header) a[href*="/admin/"]) > main.container {
        width: 90%;
        max-width: 90%;
    }
    body:has(> header:not(.sy-site-header) a[href*="/admin/"]) > header .nav-links {
        gap: 12px;
        flex-wrap: nowrap;
    }
    body:has(> header:not(.sy-site-header) a[href*="/admin/"]) > header .nav-link {
        white-space: nowrap;
        font-size: 12px;
    }
}

/* Navbar */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-gold);
}

.logo-img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(167, 143, 118, 0.35);
    font-size: 20px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px);
    padding: 32px;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(167, 143, 118, 0.4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-hover));
    color: #fff;
    box-shadow: 0 4px 14px rgba(108, 120, 106, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 120, 106, 0.35);
    background: linear-gradient(135deg, var(--accent-teal-hover), var(--accent-teal-hover));
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #bda072);
    color: #fff;
    box-shadow: 0 4px 14px rgba(167, 143, 118, 0.25);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 143, 118, 0.35);
    background: linear-gradient(135deg, #c1a58c, #a78f76);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-danger), var(--accent-danger-hover));
    color: #fff;
    box-shadow: 0 4px 14px rgba(178, 107, 103, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 107, 103, 0.35);
    background: linear-gradient(135deg, var(--accent-danger-hover), var(--accent-danger-hover));
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-full {
    width: 100%;
}

/* Forms styling */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    padding: 12px 16px;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    background: #ffffff;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(167, 143, 118, 0.18);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Dashboard layouts */
.dashboard-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    margin-top: 32px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

@media (min-width: 769px) {
    .sidebar-link:hover {
        color: var(--text-primary);
        background: rgba(167, 143, 118, 0.06);
        padding-left: 24px;
    }
    .sidebar-link.active {
        background: rgba(167, 143, 118, 0.12);
        border-left: 3px solid var(--accent-gold);
        color: var(--accent-teal);
        box-shadow: var(--shadow-sm);
        padding-left: 24px;
    }
}

/* Stat Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-desc {
    font-size: 12px;
    color: var(--accent-teal);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid transparent;
}

.badge-success {
    background: var(--accent-success-bg);
    color: var(--accent-success);
    border-color: var(--accent-success-border);
}

.badge-warning {
    background: var(--accent-warning-bg);
    color: var(--accent-warning);
    border-color: var(--accent-warning-border);
}

.badge-danger {
    background: var(--accent-danger-bg);
    color: var(--accent-danger);
    border-color: var(--accent-danger-border);
}

.badge-info {
    background: var(--accent-info-bg);
    color: var(--accent-info);
    border-color: var(--accent-info-border);
}

/* Grid for Courses list */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 143, 118, 0.4);
}

.course-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(108, 120, 106, 0.2), rgba(167, 143, 118, 0.15));
}

.course-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.course-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.course-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-gold);
}

.progress-bar-wrapper {
    width: 100%;
    background: rgba(0, 0, 0, 0.06);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

/* Learning Workspace */
.learning-workspace {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    min-height: calc(100vh - 80px);
}

.lessons-menu {
    border-right: 1px solid var(--border-color);
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
}

.lesson-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}

.lesson-item.active {
    background: rgba(167, 143, 118, 0.08);
    border-color: rgba(167, 143, 118, 0.2);
    color: var(--text-primary);
}

.lesson-check {
    color: var(--accent-teal);
    font-size: 14px;
}

.lesson-content-pane {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Video Player */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
    border: 1px solid var(--border-color);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Alert styling */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: #2ecc71;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: #e74c3c;
}

/* Setup wizard layout */
.setup-container {
    max-width: 680px;
    margin: 60px auto;
    width: 100%;
    padding: 0 16px;
}

.setup-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.setup-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.06);
    z-index: 1;
}

.step-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 2;
    transition: var(--transition-smooth);
}

.step-node.active {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: #fff;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}

.step-node.completed {
    border-color: var(--accent-teal);
    background: var(--bg-secondary);
    color: var(--accent-teal);
}

/* Table styling */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

th {
    background: rgba(0, 0, 0, 0.02);
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

tr:last-child td {
    border-bottom: none;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive utilities */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .learning-workspace {
        grid-template-columns: 1fr;
    }
    .lessons-menu {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 24px;
        max-height: 240px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px !important;
    }
    .nav-wrapper {
        flex-direction: column !important;
        height: auto !important;
        padding: 16px 0 !important;
        gap: 12px !important;
        text-align: center;
    }
    .logo-img {
        max-height: 36px !important;
    }
    .nav-links {
        display: flex !important;
        gap: 16px !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .nav-link {
        font-size: 13px !important;
        padding: 4px 0 !important;
    }
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .stats-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
    .stat-card {
        padding: 16px !important;
        gap: 6px !important;
    }
    .stat-title {
        font-size: 10px !important;
        letter-spacing: 0.5px !important;
    }
    .stat-value {
        font-size: 22px !important;
    }
    .sidebar {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding: 4px 4px 12px 4px !important;
        margin-bottom: 16px !important;
        gap: 8px !important;
        scrollbar-width: none; /* Firefox */
    }
    .sidebar::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .sidebar-link {
        padding: 10px 16px !important;
        font-size: 13px !important;
        border-radius: 30px !important;
        background: rgba(167, 143, 118, 0.05) !important;
        border: 1px solid var(--border-color) !important;
        flex-shrink: 0;
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
    }
    .sidebar-link.active {
        border-left: none !important;
        background: var(--accent-gold) !important;
        color: #ffffff !important;
        border-color: var(--accent-gold) !important;
        box-shadow: 0 4px 12px rgba(167, 143, 118, 0.2);
    }
    h1 {
        font-size: 22px !important;
    }
    h2 {
        font-size: 20px !important;
    }
    h3 {
        font-size: 18px !important;
    }
    .glass-card {
        padding: 20px !important;
        margin-bottom: 16px !important;
    }
}

/* Admin dashboard mobile shell: app bar + slide-in drawer + bottom app bar. */
.admin-mobile-menu-btn,
.admin-drawer-head,
.admin-drawer-overlay,
.admin-bottom-appbar {
    display: none;
}

@media (max-width: 768px) {
    body.admin-dashboard-shell {
        padding-bottom: 76px;
        background-image: linear-gradient(180deg, #fbf9f6 0%, #f5efe8 100%);
    }

    body.admin-dashboard-shell > header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 10px 28px rgba(84, 65, 47, 0.08);
    }

    body.admin-dashboard-shell > header .nav-wrapper {
        height: 64px !important;
        min-height: 64px !important;
        padding: 0 !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 0 !important;
        position: relative;
    }

    body.admin-dashboard-shell .admin-mobile-menu-btn {
        display: inline-grid;
        place-items: center;
        position: absolute;
        left: 0;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(167,143,118,.26);
        border-radius: 14px;
        background: #fff;
        color: var(--accent-gold);
        font-size: 23px;
        box-shadow: 0 8px 18px rgba(167,143,118,.12);
    }

    body.admin-dashboard-shell > header .logo {
        gap: 8px;
        justify-content: center;
        max-width: calc(100% - 108px);
        overflow: hidden;
    }

    body.admin-dashboard-shell > header .logo-img {
        max-height: 38px !important;
    }

    body.admin-dashboard-shell > header .logo span {
        font-size: 9px !important;
        letter-spacing: .7px !important;
        padding: 2px 6px !important;
        margin-left: 2px !important;
    }

    body.admin-dashboard-shell > header .nav-links {
        display: none !important;
    }

    body.admin-dashboard-shell > main.container {
        width: 100%;
        max-width: 100%;
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-bottom: 92px !important;
    }

    body.admin-dashboard-shell .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.admin-dashboard-shell .stat-card {
        border-radius: 18px !important;
        padding: 15px !important;
        box-shadow: 0 10px 24px rgba(84, 65, 47, 0.08);
    }

    body.admin-dashboard-shell .dashboard-grid {
        display: block !important;
    }

    body.admin-dashboard-shell .sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 1100 !important;
        width: min(86vw, 330px) !important;
        height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 18px 16px 26px !important;
        margin: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        white-space: normal !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-right: 1px solid rgba(167,143,118,.22) !important;
        border-radius: 0 24px 24px 0 !important;
        box-shadow: 22px 0 60px rgba(48, 35, 24, .22);
        transform: translateX(-105%);
        transition: transform .28s cubic-bezier(.22, .8, .22, 1);
        scrollbar-width: thin;
    }

    body.admin-dashboard-shell.admin-drawer-open .sidebar {
        transform: translateX(0);
    }

    body.admin-dashboard-shell .admin-drawer-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 6px 2px 14px;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(167,143,118,.18);
    }

    body.admin-dashboard-shell .admin-drawer-head strong {
        display: block;
        font-family: var(--font-serif);
        color: var(--text-primary);
    }

    body.admin-dashboard-shell .admin-drawer-head small {
        display: block;
        color: var(--text-muted);
        font-size: 12px;
    }

    body.admin-dashboard-shell .admin-drawer-head button {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: rgba(167,143,118,.12);
        color: var(--accent-gold);
        font-size: 28px;
        line-height: 1;
    }

    body.admin-dashboard-shell .sidebar-link {
        display: flex !important;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 13px 14px !important;
        border-radius: 15px !important;
        border: 1px solid rgba(167,143,118,.16) !important;
        border-left: 4px solid transparent !important;
        background: rgba(167,143,118,.055) !important;
        color: var(--text-secondary) !important;
        font-size: 14px !important;
        font-weight: 700;
        white-space: normal !important;
        flex-shrink: 0;
    }

    body.admin-dashboard-shell .sidebar-link.active {
        color: #fff !important;
        background: linear-gradient(135deg, var(--accent-gold), #8d755f) !important;
        border-color: transparent !important;
        box-shadow: 0 10px 22px rgba(167,143,118,.25);
    }

    body.admin-dashboard-shell .admin-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(31, 24, 18, .42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .24s ease;
        backdrop-filter: blur(2px);
    }

    body.admin-dashboard-shell.admin-drawer-open .admin-drawer-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.admin-dashboard-shell .dashboard-content .glass-card {
        border-radius: 20px !important;
    }

    body.admin-dashboard-shell table {
        min-width: 780px;
    }

    body.admin-dashboard-shell .table-responsive,
    body.admin-dashboard-shell .dashboard-content .glass-card:has(table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.admin-dashboard-shell .admin-bottom-appbar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 10px;
        z-index: 980;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        padding: 8px;
        border-radius: 22px;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(167,143,118,.22);
        box-shadow: 0 14px 38px rgba(48, 35, 24, .18);
        backdrop-filter: blur(16px);
    }

    body.admin-dashboard-shell .admin-bottom-appbar a {
        display: grid;
        place-items: center;
        gap: 1px;
        min-height: 48px;
        border-radius: 16px;
        color: var(--text-secondary);
        font-weight: 800;
        text-decoration: none;
    }

    body.admin-dashboard-shell .admin-bottom-appbar a span {
        font-size: 18px;
        line-height: 1;
    }

    body.admin-dashboard-shell .admin-bottom-appbar a small {
        font-size: 10px;
        line-height: 1.1;
    }

    body.admin-dashboard-shell .admin-bottom-appbar a.active {
        background: rgba(167,143,118,.14);
        color: var(--accent-gold);
    }
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    .btn-sm {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    /* Full-Screen Mobile Chatbot Assistant */
    #aiChatWindow {
        bottom: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
    }
    #aiChatMessages {
        padding: 12px !important;
    }
    #aiChatQuickReplies {
        padding: 8px !important;
        gap: 6px !important;
    }
}

/* Global Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Themed Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(167, 143, 118, 0.05);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(108, 120, 106, 0.35);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 120, 106, 0.55);
    border: 2px solid transparent;
    background-clip: padding-box;
}
