/* assets/css/style.css - NOON LEARN Multi-Theme & Mobile-Responsive Design System */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   COLOR MODES & THEMES
   ========================================================================== */

/* 1. Sage Mint Modern UI Theme (Light Mode) */
:root, [data-theme="light"], [data-theme="noon"], [data-theme="sage"] {
    --bg-dark: #EEF7EC;       /* Soft Sage Light Green Canvas */
    --bg-card: #FFFFFF;       /* Pure Crisp White Cards */
    --bg-card-hover: #E4F2E2;
    --bg-sidebar: #FFFFFF;    /* Clean White Sidebar */
    --bg-bottom-nav: #FFFFFF; /* Clean Floating White Bottom Bar */
    --border-color: #E0EFE0;
    --border-light: #EBF5E9;

    --primary: #38A137;       /* Vibrant Leaf Green */
    --primary-hover: #2E7D32; /* Deep Forest Green */
    --primary-light: #E8F5E5; /* Light Soft Mint */
    --primary-text: #2E7D32;

    --secondary: #4CAF50;
    --accent-gold: #F59E0B;
    --accent-gold-light: #FEF3C7;
    --accent-purple: #8B5CF6;
    --accent-pink: #EC4899;

    --text-main: #15381B;     /* Rich Dark Forest Green Text */
    --text-muted: #637D68;    /* Muted Sage Text */
    --text-dark: #15381B;

    --shadow-sm: 0 4px 14px rgba(46, 125, 50, 0.05);
    --shadow-md: 0 12px 30px rgba(46, 125, 50, 0.1);
    --shadow-glow: 0 10px 25px rgba(56, 161, 55, 0.25);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Midnight Emerald (Dark Mode) */
[data-theme="dark"] {
    --bg-dark: #0f1c12;
    --bg-card: #182a1d;
    --bg-card-hover: #213827;
    --bg-sidebar: #132317;
    --bg-bottom-nav: #132317;
    --border-color: #243d2a;
    --border-light: rgba(255, 255, 255, 0.08);

    --primary: #38a137;
    --primary-hover: #2e7d32;
    --primary-light: rgba(56, 161, 55, 0.18);
    --primary-text: #50c878;

    --accent-gold: #d97706;
    --accent-gold-light: rgba(217, 119, 6, 0.15);
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;

    --text-main: #f0fdf4;
    --text-muted: #86efac;
    --text-dark: #0f1c12;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(56, 161, 55, 0.2);
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* App Main Grid Container */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    position: relative;
}

/* ==========================================================================
   DESKTOP & MOBILE SIDEBAR DRAWER
   ========================================================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    height: 100vh;
    position: sticky;
    top: 0;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 0.75rem 1.5rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent-gold));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'Amiri', serif;
}

.role-badge-container {
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.role-badge-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: flex;
    justify-content: space-between;
}

.role-selector-select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.role-selector-select:focus,
.role-selector-select:hover {
    border-color: var(--primary);
}

.nav-menu {
    list-style: none;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.25rem 0.35rem 0.25rem 0.1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.nav-menu::-webkit-scrollbar {
    width: 4px;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    position: relative;
}

.nav-item:hover {
    background: var(--primary-light);
    color: var(--primary-text);
    transform: translateX(3px);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary-text);
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(56, 161, 55, 0.15);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
}

.user-sidebar-card {
    padding: 0.85rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.user-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.user-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: var(--radius-full);
    border: 2px solid var(--accent-gold);
    background: var(--bg-dark);
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.user-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-tag {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   MAIN CANVAS & TOP BAR
   ========================================================================== */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--bg-dark);
    padding-bottom: 90px; /* Space for Mobile Bottom Dock */
}

.top-header {
    height: 72px;
    padding: 0 1.75rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(var(--bg-card), 0.85);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-hamburger {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.page-title-box h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
}

.page-title-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blueprint-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.blueprint-nav-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-text);
    transform: translateY(-1px);
}

.theme-pill-selector {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 3px;
}

.theme-btn-dot {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.theme-btn-dot.active {
    box-shadow: 0 0 0 2px var(--primary);
    transform: scale(1.1);
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 1.1rem;
}

/* Header User Profile Badge (Top Right) */
.header-user-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.65rem 0.35rem 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-user-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--accent-gold);
    background: var(--bg-dark);
    object-fit: cover;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}

.header-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.header-user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.header-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 0.2rem;
}

.header-logout-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

.badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--accent-pink);
    border-radius: 50%;
}

/* Page Container */
.page-container {
    padding: 1.75rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Banner Component */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)), url('https://images.unsplash.com/photo-1542816417-0983cbe0f138?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-glow);
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
}

.banner-text p {
    opacity: 0.9;
    margin-top: 0.4rem;
    font-size: 0.95rem;
}

.banner-pills {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pill-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
}

/* ==========================================================================
   REFERENCE MOBILE UI COMPONENTS (CIRCULAR PROGRESS & SUBJECT PILLS)
   ========================================================================== */
.radial-progress-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.radial-progress-svg {
    transform: rotate(-90deg);
    width: 160px;
    height: 160px;
}

.radial-bg-circle {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 12;
}

.radial-fill-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 12;
    stroke-dasharray: 440;
    stroke-dashoffset: 120;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.radial-center-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.radial-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.radial-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Avatar Stack component */
.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-card);
    margin-left: -10px;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

/* Subject Pills */
.subject-pills-row {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.subject-pill {
    padding: 0.6rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.subject-pill.active, .subject-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Cards & Grid */
.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.card-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.85rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-text);
    font-weight: 700;
}

.course-icon {
    font-size: 2.2rem;
}

.course-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.course-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-gold));
    border-radius: var(--radius-full);
}

/* Custom Table */
.custom-table-container {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.custom-table th {
    padding: 0.85rem 1rem;
    background: var(--primary-light);
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.custom-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.status-pill {
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.status-pill.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-pill.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.status-pill.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ==========================================================================
   MODERN PILL BUTTONS & ACTION GROUPS (AS PER REFERENCE DESIGN)
   ========================================================================== */
.btn {
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
    letter-spacing: -0.01em;
    user-select: none;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary, .btn-action-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(56, 161, 55, 0.28);
    border: 1.5px solid transparent;
}

.btn-primary:hover, .btn-action-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 22px rgba(56, 161, 55, 0.35);
    transform: translateY(-1px);
}

.btn-secondary, .btn-action-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover, .btn-action-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--accent-gold);
    color: white;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.28);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-full);
}

/* Contrast Button Pair Dock (Withdraw / Deposit & Buy / Sell style) */
.btn-pair-dock, .btn-action-pair {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.btn-pair-dock .btn, .btn-action-pair .btn {
    flex: 1;
    border-radius: var(--radius-full);
    text-align: center;
}

/* Quick Action 3-Col Squircle Cards (Buy/Sell, Transfers, Exchange style) */
.quick-action-dock {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 1.25rem 0;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 22px;
    padding: 16px 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.quick-action-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.quick-action-btn:hover .quick-action-icon-circle {
    background: var(--primary);
    color: #FFFFFF;
}

.quick-action-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
}

/* Filter Pills Horizontal Scroller */
.filter-pills-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter-pills-scroll::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    padding: 0.55rem 1.35rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-pill.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(56, 161, 55, 0.25);
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    padding: 0.7rem 0.95rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
}

/* Audio Player */
.sticky-audio-bar {
    position: fixed;
    bottom: 0;
    left: 280px;
    right: 0;
    height: 70px;
    background: var(--bg-card);
    border-top: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    z-index: 95;
    box-shadow: var(--shadow-md);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-audio-bar.active {
    transform: translateY(0);
}

/* ==========================================================================
   FLOATING MOBILE BOTTOM NAVIGATION DOCK
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 440px;
    height: 64px;
    background: var(--bg-bottom-nav);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    z-index: 180;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-item .icon {
    font-size: 1.35rem;
}

.mobile-nav-item.active {
    color: var(--primary-text);
}

.mobile-nav-item.active .icon {
    transform: translateY(-2px);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 92%;
    max-width: 540px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
}

.quiz-question-box {
    background: var(--primary-light);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.quiz-option-btn {
    padding: 0.85rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    font-weight: 500;
}

.quiz-option-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-text);
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 0.85rem 1.2rem;
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & MOBILE SCREEN ADJUSTMENTS
   ========================================================================== */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-hamburger {
        display: flex;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .sticky-audio-bar {
        left: 0;
        bottom: 84px;
        border-radius: var(--radius-md);
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }

    .page-container {
        padding: 1rem;
        gap: 1.25rem;
    }

    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.5rem;
    }

    .grid-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .grid-stats {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .page-title-box h1 {
        font-size: 1.1rem;
    }

    .theme-pill-selector {
        scale: 0.9;
    }
}

/* ==========================================================================
   SAGE MINT DOCTOR BOOKING DESIGN SYSTEM COMPONENTS
   ========================================================================== */

/* 1. Pill Search Bar with Circular Green Badge */
.sage-search-bar {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.5rem 0.4rem 0.4rem;
    box-shadow: var(--shadow-sm);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.sage-search-icon-bg {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sage-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.92rem;
    color: var(--text-main);
    width: 100%;
    font-weight: 500;
}

/* 2. Hero Feature Card with Green Gradient & Day Selector Pills */
.sage-hero-card {
    background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: white;
    box-shadow: 0 14px 28px rgba(46, 125, 50, 0.22);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.sage-hero-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.sage-badge-pill {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.sage-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}

.sage-calendar-pills {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 1.25rem;
    background: rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.sage-day-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: var(--transition);
}

.sage-day-pill.active {
    background: white;
    color: #2E7D32;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 3. Category Filter Pills */
.sage-filter-row {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

.sage-filter-pill {
    padding: 0.55rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.sage-filter-pill.active, .sage-filter-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(56, 161, 55, 0.3);
}

/* 4. Sage Cards with Soft Shadows, Star Rating & Circular Arrow Action */
.sage-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sage-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.sage-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sage-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.sage-rating-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

.sage-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.sage-arrow-btn:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   5. FLOATING SQUIRCLE CAPSULE BOTTOM DOCK (AS ATTACHED REFERENCE)
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 420px;
    height: 68px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    display: none; /* Display flex on mobile via media queries */
    align-items: center;
    justify-content: space-around;
    padding: 6px 10px;
    z-index: 1000;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    text-decoration: none;
}

.mobile-nav-item:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

/* Active Tab: Sleek Dark Capsule Badge (Phone 1 & Phone 3 in Reference Image) */
.mobile-nav-item.active {
    background: var(--text-dark, #15381B);
    color: #FFFFFF !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

[data-theme="dark"] .mobile-nav-item.active {
    background: var(--primary);
    color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(56, 161, 55, 0.35);
}

.mobile-nav-item.active .nav-svg,
.mobile-nav-item.active svg {
    stroke: #FFFFFF !important;
}

/* Raised Center Circular FAB (Optional Variant in Reference Image) */
.mobile-nav-item.center-fab-wrapper {
    position: relative;
}

.center-fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--text-dark, #15381B);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 3.5px solid var(--bg-card);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

[data-theme="dark"] .center-fab-btn {
    background: var(--primary);
}

.center-fab-btn:active {
    transform: scale(0.92);
}

.center-fab-btn .nav-svg,
.center-fab-btn svg {
    stroke: #FFFFFF !important;
    width: 22px;
    height: 22px;
}

/* SVG Line Icons for Menu & Nav */
.nav-svg, svg.nav-svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.85;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.2s ease;
}

.nav-item .nav-svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.nav-item.active .nav-svg {
    color: var(--primary-text);
}

/* ==========================================================================
   6. COMPREHENSIVE MOBILE RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .app-container {
        width: 100vw;
    }

    .grid-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile Off-Canvas Drawer Sidebar */
    .sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        z-index: 300;
        box-shadow: 12px 0 35px rgba(0, 0, 0, 0.25);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.open {
        transform: translateX(320px);
    }

    /* Mobile Hamburger Menu in Top Header */
    .mobile-hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Top Header Bar on Mobile */
    .top-header {
        padding: 0 1rem;
        height: 64px;
    }

    .page-title-box h1 {
        font-size: 1.15rem;
    }

    .page-title-box p {
        display: none;
    }

    /* Main Content Padding (Ensuring Bottom Capsule Dock doesn't block content) */
    .main-content {
        width: 100vw;
        padding-bottom: 110px;
    }

    .page-container {
        padding: 1rem 0.85rem;
        gap: 1.25rem;
    }

    /* Show Floating Bottom Capsule Navigation Dock */
    .mobile-bottom-nav {
        display: flex !important;
    }

    /* Welcome Banner & Grids */
    .welcome-banner {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        border-radius: var(--radius-md);
    }

    .grid-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem 0.85rem;
        border-radius: var(--radius-sm);
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-icon-wrapper {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    /* Button pairs in single column or full width */
    .btn-pair-dock, .btn-action-pair {
        flex-direction: row;
        width: 100%;
    }

    .btn-pair-dock .btn, .btn-action-pair .btn {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .mobile-bottom-nav {
        bottom: 14px;
        width: calc(100% - 24px);
        height: 64px;
        padding: 4px 8px;
    }

    .mobile-nav-item {
        width: 42px;
        height: 42px;
    }

    .mobile-nav-item.active {
        width: 42px;
        height: 42px;
    }

    .center-fab-btn {
        width: 46px;
        height: 46px;
    }

    .grid-stats {
        grid-template-columns: 1fr;
    }

    .top-header {
        padding: 0 0.75rem;
    }

    .header-actions {
        gap: 0.4rem;
    }
}

/* ==========================================================================
   7. SUPER ADMIN DESKTOP 2-COLUMN SQUIRCLE TILES MENU (AS PER ATTACHED SCREENSHOT)
   ========================================================================== */
.sidebar.super-admin-mode {
    background: #171836;
    color: #f1f5f9;
    width: 275px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s ease;
}

.sidebar.super-admin-mode .brand-title {
    background: linear-gradient(90deg, #a5b4fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar.super-admin-mode .brand-tagline {
    color: #94a3b8;
}

.sidebar.super-admin-mode .brand-logo {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.sidebar.super-admin-mode .role-badge-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar.super-admin-mode .role-selector-select {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 100%;
}

.sidebar.super-admin-mode .role-selector-select option {
    background: #171836;
    color: #ffffff;
}

.sidebar.super-admin-mode .user-sidebar-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-top: 10px;
}

.sidebar.super-admin-mode ~ .main-content {
    background: #f4f6fb;
}

[data-theme="dark"] .sidebar.super-admin-mode ~ .main-content {
    background: #0f1123;
}

@media (min-width: 769px) {
    .sidebar.super-admin-mode ~ .main-content .top-header {
        display: none !important;
    }
}

.sidebar.super-admin-mode.collapsed {
    width: 82px;
}

.sidebar.super-admin-mode.collapsed .brand-title,
.sidebar.super-admin-mode.collapsed .brand-tagline,
.sidebar.super-admin-mode.collapsed .nav-section-title,
.sidebar.super-admin-mode.collapsed .tile-label,
.sidebar.super-admin-mode.collapsed .nav-home-pill span,
.sidebar.super-admin-mode.collapsed .role-badge-container,
.sidebar.super-admin-mode.collapsed .user-info {
    display: none;
}

.sidebar.super-admin-mode.collapsed .nav-tiles-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.sidebar.super-admin-mode.collapsed .nav-tile-item {
    padding: 10px 4px;
    min-height: auto;
}

.nav-home-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    color: #171836;
    padding: 11px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin: 0.75rem 0 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.nav-home-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.nav-home-pill svg {
    width: 20px;
    height: 20px;
    stroke: #171836;
    stroke-width: 2.2;
}

.nav-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b92b2;
    margin: 14px 2px 8px;
}

.nav-tiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 6px;
}

.nav-tile-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #e2e8f0;
    text-align: center;
    min-height: 66px;
    user-select: none;
}

.nav-tile-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.nav-tile-item.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.tile-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
}

.tile-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    color: inherit;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-footer-controls {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-control-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.nav-control-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* ==========================================================================
   8. SUPER ADMIN DASHBOARD DESKTOP UI (AS PER ATTACHED SCREENSHOT)
   ========================================================================== */
.sa-dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.sa-top-header-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.sa-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 260px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 0.55rem 1.1rem;
}

.sa-search-box input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 0.88rem;
    color: var(--text-main);
}

.sa-academic-year-pill {
    background: #059669;
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.sa-user-badge-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
}

.sa-user-badge-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6366f1;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
}

/* Row 1 Layout */
.sa-row-1 {
    display: grid;
    grid-template-columns: 310px 320px 1fr;
    gap: 1.25rem;
}

.sa-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.sa-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 1.1rem 0.95rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: var(--transition);
}

.sa-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sa-stat-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sa-stat-icon-circle.purple { background: #f3e8ff; color: #7c3aed; }
.sa-stat-icon-circle.teal { background: #ecfdf5; color: #059669; }
.sa-stat-icon-circle.blue { background: #eff6ff; color: #2563eb; }
.sa-stat-icon-circle.orange { background: #fff7ed; color: #ea580c; }

.sa-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

.sa-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* 4 Vibrant Action Buttons */
.sa-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.sa-action-card-btn {
    border-radius: 18px;
    color: #FFFFFF;
    padding: 1.1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.82rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.sa-action-card-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.sa-action-card-btn.green { background: #059669; }
.sa-action-card-btn.blue { background: #0284c7; }
.sa-action-card-btn.orange { background: #ea580c; }
.sa-action-card-btn.purple { background: #7c3aed; }

/* To Do List */
.sa-todo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.sa-card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sa-card-header-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sa-add-pill-btn {
    background: #6366f1;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.sa-add-pill-btn:hover {
    background: #4f46e5;
}

.sa-todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 0.6rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-main);
    transition: var(--transition);
}

.sa-todo-item:hover {
    border-color: #6366f1;
}

.sa-todo-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sa-check-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.sa-todo-trash {
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.sa-todo-trash:hover {
    color: #ef4444;
}

/* Row 2 Layout */
.sa-row-2 {
    display: grid;
    grid-template-columns: 310px 320px 1fr;
    gap: 1.25rem;
}

.sa-attendance-card, .sa-calendar-card, .sa-side-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sa-attendance-card, .sa-calendar-card, .sa-notice-card, .sa-events-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.sa-view-all-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6366f1;
    text-decoration: none;
    cursor: pointer;
}

.sa-attend-subtabs {
    display: flex;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 3px;
    margin-bottom: 1rem;
}

.sa-attend-subtab {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.sa-attend-subtab.active {
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sa-donut-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.sa-donut-svg {
    width: 140px;
    height: 140px;
}

.sa-donut-legend {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 600;
}

.sa-calendar-header-banner {
    background: #6366f1;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.sa-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 0.75rem;
}

.sa-cal-day-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 4px 0;
}

.sa-cal-date {
    padding: 6px 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 500;
}

.sa-cal-date.active-today {
    background: #6366f1;
    color: #FFFFFF;
    font-weight: 700;
}

.sa-cal-date.muted {
    color: #cbd5e1;
}

.sa-notice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-main);
}

.sa-notice-item:last-child {
    border-bottom: none;
}

/* Responsive adjustment for Super Admin dashboard */
@media (max-width: 1200px) {
    .sa-row-1, .sa-row-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .sa-row-1, .sa-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   9. LOGIN SCREEN STYLES (NOON LEARN AUTHENTICATION PORTAL)
   ========================================================================== */
body.not-authenticated #appSidebar,
body.not-authenticated .top-header,
body.not-authenticated #mobileBottomNav,
body.not-authenticated #sidebarOverlay,
body.not-authenticated #stickyAudioBar {
    display: none !important;
}

body.not-authenticated .main-content {
    margin-left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    min-height: 100vh;
}

body.not-authenticated .page-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.login-page-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #090c19;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Decorative Ambient Glows */
.login-page-wrapper::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.login-page-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 20%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    background: rgba(23, 24, 54, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 2.5rem 2.2rem;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.65), 0 0 40px rgba(99, 102, 241, 0.18);
    color: #f8fafc;
    animation: loginFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-brand-box {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-brand-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, #4f46e5, #059669);
    font-size: 2.1rem;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
    margin-bottom: 0.85rem;
    position: relative;
}

.login-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.3rem;
}

.login-brand-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

/* Quick Fill Preset Pills */
.login-presets-strip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 1.5rem;
}

.login-presets-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #818cf8;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-presets-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.login-preset-chip {
    flex: 1;
    min-width: 105px;
    padding: 6px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    user-select: none;
    white-space: nowrap;
}

.login-preset-chip:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #818cf8;
    color: #ffffff;
    transform: translateY(-1px);
}

.login-form-group {
    margin-bottom: 1.15rem;
}

.login-form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.45rem;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.login-input-icon svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
}

.login-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.login-input:focus {
    border-color: #6366f1;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.login-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.login-password-toggle:hover {
    color: #ffffff;
}

.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    margin: 0.85rem 0 1.5rem;
    color: #94a3b8;
}

.login-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.login-checkbox-label input[type="checkbox"] {
    accent-color: #6366f1;
    cursor: pointer;
}

.btn-login-submit {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
    transition: var(--transition);
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.6);
    filter: brightness(1.08);
}

.btn-login-submit:active {
    transform: translateY(0);
}

.login-error-box {
    display: none;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    color: #fca5a5;
    margin-bottom: 1.15rem;
    animation: shakeError 0.35s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.login-credentials-guide {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    color: #94a3b8;
}

.credentials-guide-title {
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.credentials-table-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.credentials-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
}

.credentials-row code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: #a5b4fc;
    font-family: monospace;
}

/* User sidebar card logout button */
.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 7px 12px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    justify-content: center;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   STUDENTS DIRECTORY & STUDENT PROFILE DETAILS (Matching Screenshots 1-5)
   ========================================================================== */

/* Top Filters & Stats Row */
.std-top-filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.std-select-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.std-filter-select {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    min-width: 140px;
}

.std-stats-capsules {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.std-stat-pill-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0.5rem 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.std-stat-pill-box .lbl {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.std-stat-pill-box .val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Search bar & Bulk actions bar */
.std-search-bar {
    width: 100%;
    margin-bottom: 1rem;
}

.std-search-input-field {
    width: 100%;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    font-size: 0.88rem;
    outline: none;
}

.std-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

.std-action-btn-pill {
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.std-action-btn-pill.primary {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.std-action-btn-pill.primary:hover {
    background: #4f46e5;
}

/* 2-Column Student Cards Grid */
.std-cards-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .std-cards-grid-2col {
        grid-template-columns: 1fr;
    }
}

.std-student-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.std-student-card:hover {
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.08);
    border-color: #c7d2fe;
}

.std-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.std-roll-box {
    text-align: center;
    min-width: 32px;
}

.std-roll-num {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

.std-roll-lbl {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
}

.std-avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.std-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.std-avatar-check {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.std-info-box .std-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.std-info-box .std-adm {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.std-info-box .std-class {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.std-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.std-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.std-icon-btn:hover {
    background: #eef2ff;
    color: #6366f1;
    border-color: #c7d2fe;
}

/* ==========================================================================
   STUDENT DETAILED PROFILE PAGE (Matching Screenshots 2-5)
   ========================================================================== */

.std-detail-header-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.std-profile-top-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.std-profile-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6366f1;
}

.std-profile-meta-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.std-profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.std-profile-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.std-profile-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.std-pill-tag {
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}

.std-pill-tag.active {
    background: #dcfce7;
    color: #16a34a;
}

.std-quick-actions-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.std-quick-act-btn {
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.std-quick-act-btn.dark {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.std-quick-act-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.std-subtabs-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.4rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.std-subtab-item {
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.std-subtab-item.active {
    background: #6366f1;
    color: #ffffff;
}

.std-detail-layout-2col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
}

@media (max-width: 990px) {
    .std-detail-layout-2col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ADMISSION OVERVIEW & ADMIT STUDENT WIZARD STYLES (Matching Screenshots 1-5)
   ========================================================================== */

/* Admission Overview Dashboard */
.adm-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.adm-header-title h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.adm-header-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.adm-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.adm-btn-pill {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.adm-btn-pill.primary {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.adm-btn-pill.primary:hover {
    background: #4f46e5;
}

.adm-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.adm-stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.adm-stat-box .dot-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.adm-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.adm-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

.adm-stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.adm-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.adm-filter-selects {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.adm-filter-select {
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
}

.adm-search-input {
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    font-size: 0.82rem;
    min-width: 240px;
    outline: none;
}

.adm-bottom-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.adm-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 4-Step Admit Student Wizard */
.wizard-page-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.wizard-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.wizard-back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.wizard-back-link:hover {
    color: var(--primary);
}

.wizard-header-title {
    margin-bottom: 1.75rem;
}

.wizard-header-title h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.wizard-header-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.wizard-body-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .wizard-body-layout {
        grid-template-columns: 1fr;
    }
}

.wizard-sidebar-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.wizard-step-item.active {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.wizard-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
}

.wizard-step-item.active .wizard-step-num {
    background: #6366f1;
    color: #ffffff;
}

.wizard-step-item.completed .wizard-step-num {
    background: #10b981;
    color: #ffffff;
}

.wizard-step-text-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
}

.wizard-step-text-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.wizard-form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.photo-upload-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
    cursor: pointer;
    background: #f8fafc;
    transition: var(--transition);
}

.photo-upload-circle:hover {
    border-color: #6366f1;
    background: #eef2ff;
}

.wz-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.wz-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .wz-form-grid-2, .wz-form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.wz-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.wz-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
}

.wz-input, .wz-select, .wz-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-size: 0.88rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.wz-input:focus, .wz-select:focus, .wz-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.wz-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    gap: 1rem;
    flex-wrap: wrap;
}

.wz-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wz-btn-sec {
    background: #f1f5f9;
    color: #334155;
}

.wz-btn-sec:hover {
    background: #e2e8f0;
}

.wz-btn-primary {
    background: #6366f1;
    color: #ffffff;
}

.wz-btn-primary:hover {
    background: #4f46e5;
}

.wz-btn-success {
    background: #10b981;
    color: #ffffff;
}

.wz-btn-success:hover {
    background: #059669;
}


