/* ===== main.css — SmartCodeCademy OTTY ===== */
/* Clean, professional, modern dashboard login   */
/* Navy + yellow accent, white card, responsive  */

/* ---------- DESIGN TOKENS / CSS VARIABLES ---------- */
:root {
    /* Primary brand colors */
    --color-navy: #1E1B4B;
    --color-yellow: #FFD600;
    --color-yellow-dark: #e6c200;
    --color-white: #ffffff;
    --color-black: #1e1e2f;
    
    /* Neutral colors */
    --color-gray-50: #f5f7fa;
    --color-gray-100: #edf2f7;
    --color-gray-200: #e2e8f0;
    --color-gray-400: #a0aec0;
    --color-gray-500: #6b7280;
    --color-gray-700: #4a4a68;
    
    /* Semantic colors */
    --color-error: #d93025;
    
    /* Opacity variants */
    --white-90: rgba(255, 255, 255, 0.9);
    --white-80: rgba(255, 255, 255, 0.8);
    
    /* Shadows */
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-mobile: 0 4px 20px rgba(0, 0, 0, 0.02);
    --shadow-yellow-sm: 0 4px 6px rgba(255, 214, 0, 0.18);
    --shadow-yellow-lg: 0 6px 12px rgba(255, 214, 0, 0.25);
    --shadow-focus: 0 0 0 3px rgba(30, 27, 75, 0.06);
    
    /* Border radii */
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 2px;
    
    /* Spacing */
    --space-xs: 0.35rem;
    --space-sm: 0.4rem;
    --space-md: 0.5rem;
    --space-lg: 0.75rem;
    --space-xl: 1rem;
    --space-2xl: 1.5rem;
    --space-3xl: 2rem;
    --space-4xl: 2.5rem;
    --space-5xl: 3rem;
    
    /* Typography */
    --text-xs: 0.75rem;
    --text-sm: 0.8rem;
    --text-md: 0.875rem;
    --text-base: 0.95rem;
    --text-lg: 1rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.6rem;
    --text-3xl: 1.8rem;
    --text-4xl: 1.9rem;
    --text-5xl: 2.2rem;
    
    /* Font weights */
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.2s ease;
    --transition-instant: 0.1s;
    
    /* Layout */
    --brand-max-width: 480px;
    --card-max-width: 420px;
    --brand-description-max-width: 360px;
}

/* ---------- CSS RESET / GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-gray-50);
    line-height: 1.5;
    color: var(--color-black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- SPLIT SCREEN LAYOUT ---------- */
.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-white);
}

/* ----- LEFT: BRAND PANEL (Navy) ----- */
.brand-panel {
    flex: 1;
    background-color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl);
    position: relative;
}

.brand-content {
    max-width: var(--brand-max-width);
    color: var(--color-white);
}

.brand-logo {
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.brand-logo .logo-smart {
    color: var(--color-white);
}

.brand-logo .logo-cademy {
    color: var(--color-yellow);
    margin-left: 0.1rem;
}

.brand-subhead {
    font-size: var(--text-xl);
    font-weight: var(--weight-medium);
    color: var(--white-90);
    margin-bottom: var(--space-2xl);
    border-left: 4px solid var(--color-yellow);
    padding-left: var(--space-xl);
}


.brand-description {
    font-size: var(--text-lg);
    color: var(--white-80);
    margin-bottom: var(--space-4xl);
    line-height: 1.6;
    font-weight: var(--weight-normal);
    max-width: var(--brand-description-max-width);
}

.brand-accent {
    width: 80px;
    height: 4px;
    background-color: var(--color-yellow);
    border-radius: var(--radius-full);
}

/* ----- RIGHT: FORM PANEL (White card) ----- */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    padding: var(--space-3xl);
}

.login-card {
    width: 100%;
    max-width: var(--card-max-width);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: var(--space-4xl) var(--space-3xl);
}

.login-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-semibold);
    color: var(--color-navy);
    margin-bottom: var(--space-3xl);
    letter-spacing: -0.02em;
}

/* ---------- FORM ELEMENTS ---------- */
.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: var(--space-2xl);
}

.input-label {
    display: block;
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: var(--color-gray-700);
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: 0.85rem var(--space-xl);
    font-size: var(--text-base);
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    transition: border var(--transition-fast), box-shadow var(--transition-fast);
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: var(--shadow-focus);
}

/* Password wrapper with toggle button */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: var(--space-5xl);
}

.toggle-password {
    position: absolute;
    right: var(--space-xl);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--text-xl);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-500);
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--color-navy);
}

/* Hide/show eye icons */
.eye-open,
.eye-closed {
    display: none;
}

/* Default show open eye, toggle will switch via JS */
.eye-open {
    display: block;
}

/* Remember me + forgot row */
.form-row-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3xl);
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-gray-700);
    font-weight: var(--weight-medium);
    cursor: pointer;
}

.checkbox-input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--color-navy);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.forgot-link {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: var(--weight-semibold);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.forgot-link:hover {
    border-bottom-color: var(--color-navy);
}

/* ----- LOGIN BUTTON (yellow) ----- */
.login-btn {
    width: 100%;
    background-color: var(--color-yellow);
    color: var(--color-navy);
    font-weight: var(--weight-bold);
    font-size: var(--text-lg);
    padding: 0.9rem var(--space-2xl);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-medium), transform var(--transition-instant);
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-yellow-sm);
}

.login-btn:hover {
    background-color: var(--color-yellow-dark);
    box-shadow: var(--shadow-yellow-lg);
}


.login-btn:active {
    transform: scale(0.98);
}

/* system note */
.system-note {
    margin-top: var(--space-3xl);
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    border-top: 1px solid var(--color-gray-100);
    padding-top: var(--space-2xl);
}

/* ---------- ERROR MESSAGES (JS validation) ---------- */
.error-message {
    font-size: var(--text-sm);
    color: var(--color-error);
    margin-top: var(--space-xs);
    min-height: 1.2rem;
    font-weight: var(--weight-medium);
}

/* ---------- RESPONSIVE (mobile) ---------- */
@media screen and (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .brand-panel {
        padding: var(--space-5xl) var(--space-3xl);
        min-height: 280px;
    }

    .brand-content {
        text-align: center;
        max-width: 100%;
    }

    .brand-subhead {
        border-top: 4px  solid var(--color-yellow);
        padding-left: 0;
        padding-top: var(--space-lg);
        display: inline-block;
        border-left: 0 !important;
    }

    .brand-accent {
        margin-left: auto;
        margin-right: auto;
    }

    .form-panel {
        padding: var(--space-3xl) var(--space-2xl);
    }

    .login-card {
        box-shadow: var(--shadow-mobile);
        padding: var(--space-3xl) var(--space-2xl);
    }

    .brand-description {
        max-width: 100%;
    }
}

/* ---------- small screens ---------- */
@media screen and (max-width: 480px) {
    .login-title {
        font-size: var(--text-2xl);
    }

    .brand-logo {
        font-size: var(--text-4xl);
    }

    .form-row-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }
}

/* focus visible accessibility */
.form-input:focus-visible,
.toggle-password:focus-visible,
.login-btn:focus-visible {
    outline: 2px solid var(--color-yellow);
    outline-offset: 2px;
}


/* ============================================
   DASHBOARD CSS - SmartCodeCademy OTTY
   SCOPE: .staff-dashboard-page ONLY
   Uses :root variables from main.css
   NO global resets, NO body styles
============================================ */

/* ---------- SIDEBAR (navy) ---------- */
/* ===== main.css - SmartCodeCademy OTTY ===== */
/* GLOBAL STYLES - :root, resets, body */
/* MOBILE-FIRST with min-width media queries */
/* EXACT SAME UI - ONLY RESPONSIVENESS ADDED */

/* ---------- CSS RESET / GLOBAL ---------- */
:root {
    /* Primary colors */
    --color-navy: #1E1B4B;
    --color-yellow: #FFD600;
    --color-yellow-dark: #E6C200;
    --color-white: #FFFFFF;
    --color-black: #000000;
    
    /* Neutrals */
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-700: #334155;
    
    /* Semantic */
    --color-error: #D93025;
    
    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-mobile: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
    --shadow-yellow-sm: 0 2px 4px rgba(255, 214, 0, 0.12);
    --shadow-yellow-lg: 0 8px 16px rgba(255, 214, 0, 0.18);
    --shadow-focus: 0 0 0 3px rgba(30, 27, 75, 0.06);
    
    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    
    /* Transitions */
    --transition-default: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-gray-50);
    color: var(--color-gray-700);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- LOGIN PAGE STYLES (unchanged) ---------- */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--color-white);
}

.brand-panel {
    flex: 1;
    background-color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.brand-content {
    max-width: 480px;
    color: white;
}

.brand-logo {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.logo-smart {
    color: var(--color-white);
}

.logo-cademy {
    color: var(--color-yellow);
}

.brand-subhead {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-yellow);
    padding-left: 1rem;
}

.brand-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 360px;
}

.brand-accent {
    width: 80px;
    height: 4px;
    background-color: var(--color-yellow);
    border-radius: 2px;
}

.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    padding: 2.5rem 2rem;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    transition: border 0.15s ease, box-shadow 0.15s ease;
    font-family: var(--font-sans);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: var(--shadow-focus);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-500);
    transition: color 0.15s;
}

.form-row-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-700);
    font-weight: 500;
    cursor: pointer;
}

.checkbox-input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--color-navy);
    border-radius: 4px;
    cursor: pointer;
}

.forgot-link {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.login-btn {
    width: 100%;
    background-color: var(--color-yellow);
    color: var(--color-navy);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-yellow-sm);
}

.login-btn:hover {
    background-color: var(--color-yellow-dark);
    box-shadow: var(--shadow-yellow-lg);
}

.system-note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-gray-400);
    border-top: 1px solid var(--color-gray-200);
    padding-top: 1.5rem;
}

.error-message {
    font-size: 0.8rem;
    color: var(--color-error);
    margin-top: 0.35rem;
    min-height: 1.2rem;
    font-weight: 500;
}

/* ---------- DASHBOARD STYLES - EXACT ORIGINAL UI ---------- */
.staff-dashboard-page {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

/* MOBILE FIRST BASE - Sidebar hidden by default */
.staff-dashboard-page .scc-dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--color-navy);
    color: white;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s var(--transition-default), width 0.2s var(--transition-default);
    z-index: 1000;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.04);
    transform: translateX(-100%);
}

.staff-dashboard-page .scc-dashboard-sidebar.mobile-open {
    transform: translateX(0);
}

.staff-dashboard-page .scc-dashboard-sidebar.collapsed {
    width: 80px;
}

.staff-dashboard-page .scc-dashboard-sidebar-header {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-dashboard-page .scc-dashboard-logo {
    display: flex;
    flex-direction: column;
}

.staff-dashboard-page .scc-dashboard-logo-main {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: white;
    line-height: 1.2;
}

.staff-dashboard-page .scc-dashboard-logo-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
    font-weight: 400;
}

.staff-dashboard-page .scc-dashboard-sidebar-collapse {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-dashboard-page .scc-dashboard-sidebar-collapse:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.staff-dashboard-page .collapsed .scc-dashboard-sidebar-collapse i {
    transform: rotate(180deg);
}

.staff-dashboard-page .scc-dashboard-nav {
    flex: 1;
    padding: 1.5rem 0.75rem;
    overflow-y: auto;
}

.staff-dashboard-page .scc-dashboard-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.staff-dashboard-page .scc-dashboard-nav-item {
    width: 100%;
}

.staff-dashboard-page .scc-dashboard-nav-item-logout {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.staff-dashboard-page .scc-dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color 0.15s, color 0.15s;
    font-weight: 500;
    font-size: 0.95rem;
}

.staff-dashboard-page .scc-dashboard-link i {
    width: 1.25rem;
    text-align: center;
    font-size: 1.1rem;
}

.staff-dashboard-page .scc-dashboard-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: white;
}

.staff-dashboard-page .scc-dashboard-link.active {
    background-color: rgba(255, 214, 0, 0.12);
    color: var(--color-yellow);
    border-left: 4px solid var(--color-yellow);
}

.staff-dashboard-page .collapsed .scc-dashboard-link span {
    display: none;
}

.staff-dashboard-page .collapsed .scc-dashboard-logo-sub,
.staff-dashboard-page .collapsed .scc-dashboard-logo-main {
    display: none;
}

.staff-dashboard-page .collapsed .scc-dashboard-logo {
    align-items: center;
}

.staff-dashboard-page .scc-dashboard-sidebar-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.staff-dashboard-page .scc-dashboard-main {
    margin-left: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-gray-50);
    transition: margin-left 0.2s var(--transition-default), width 0.2s var(--transition-default);
}

.staff-dashboard-page .scc-dashboard-topbar {
    height: 80px;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-100);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
}

.staff-dashboard-page .scc-dashboard-topbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.staff-dashboard-page .scc-dashboard-mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-gray-700);
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

.staff-dashboard-page .scc-dashboard-page-title {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--color-navy);
    letter-spacing: -0.01em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-dashboard-page .scc-dashboard-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.staff-dashboard-page .scc-dashboard-notification-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-gray-700);
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.15s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scc-dashboard-notification-btn {
    position: relative;
}

.scc-notification-badge {
    position: absolute;
    top: 2px;
    right: -6px;
    background-color: var(--color-yellow);
    color: #ffffff !important;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-dashboard-page .scc-dashboard-profile-dropdown {
    position: relative;
}

.staff-dashboard-page .scc-dashboard-profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color 0.15s;
    min-height: 48px;
}

.staff-dashboard-page .scc-dashboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.staff-dashboard-page .scc-dashboard-dropdown-arrow {
    color: var(--color-gray-500);
    font-size: 0.8rem;
    /* display: none; */
}

.staff-dashboard-page .scc-dashboard-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: 200px;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 0;
    display: none;
    z-index: 100;
}

.staff-dashboard-page .scc-dashboard-dropdown-menu.show {
    display: block;
}

.staff-dashboard-page .scc-dashboard-dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.staff-dashboard-page .scc-dashboard-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.15s;
    min-height: 44px;
}

.staff-dashboard-page .scc-dashboard-content {
    padding: 2rem 1rem;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.staff-dashboard-page .scc-dashboard-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.staff-dashboard-page .scc-dashboard-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
    width: 100%;
}

.staff-dashboard-page .scc-dashboard-card-icon {
    align-self: flex-end;
    color: var(--color-gray-400);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.staff-dashboard-page .scc-dashboard-card-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.staff-dashboard-page .scc-dashboard-card-label {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.staff-dashboard-page .scc-dashboard-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-yellow);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.staff-dashboard-page .scc-dashboard-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.staff-dashboard-page .scc-dashboard-actions {
    margin-bottom: 2.5rem;
}

.staff-dashboard-page .scc-dashboard-actions-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.staff-dashboard-page .scc-dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    width: 100%;
    min-height: 52px;
}

.staff-dashboard-page .scc-dashboard-btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-navy);
    box-shadow: var(--shadow-yellow-sm);
}

.staff-dashboard-page .scc-dashboard-btn-secondary {
    background-color: var(--color-white);
    color: var(--color-navy);
    border: 1.5px solid var(--color-gray-200);
}
/* ======================================================
   STAFF VIEW BUTTON - Match School View Button Style
   ====================================================== */

.view-staff-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    background-color: var(--color-white) !important;
    color: var(--color-navy) !important;
    border: 1.5px solid var(--color-gray-200) !important;
    border-radius: var(--radius-md) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin-right: 0.25rem !important;
    min-height: 32px !important;
    font-family: var(--font-sans) !important;
}

.view-staff-btn:hover {
    background-color: var(--color-gray-50) !important;
    border-color: var(--color-gray-400) !important;
}

/* ======================================================
   SCHOOL VIEW BUTTON - Match Staff View Button Height
   ====================================================== */

.scc-view-school-btn {
    min-height: 32px !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
}

/* ======================================================
   REPORT VIEW BUTTON - Match Staff View Button Height
   ====================================================== */

.scc-dashboard-btn.scc-dashboard-btn-secondary {
    min-height: 32px !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
}

.staff-dashboard-page .scc-dashboard-table-section {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem 1rem;
    width: 100%;
    overflow: hidden;
}

.staff-dashboard-page .scc-dashboard-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.staff-dashboard-page .scc-dashboard-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.staff-dashboard-page .scc-dashboard-table th {
    text-align: left;
    padding: 1rem 1rem;
    background-color: var(--color-gray-50);
    color: var(--color-gray-700);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-gray-200);
}

.staff-dashboard-page .scc-dashboard-table td {
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--color-gray-100);
    color: var(--color-gray-700);
}

.staff-dashboard-page .scc-dashboard-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.staff-dashboard-page .scc-dashboard-badge-present {
    background-color: #e6f7e6;
    color: #1e7a44;
}

.staff-dashboard-page .scc-dashboard-badge-pending {
    background-color: rgba(255, 214, 0, 0.12);
    color: #8a6e00;
}

.staff-dashboard-page .scc-dashboard-badge-absent {
    background-color: rgba(217, 48, 37, 0.08);
    color: var(--color-error);
}

/* ========== MIN-WIDTH MEDIA QUERIES - RESPONSIVE LAYERS ONLY ========== */
/* Tablet */
@media screen and (min-width: 768px) {
    .staff-dashboard-page .scc-dashboard-sidebar {
        transform: translateX(0);
    }
    
    .staff-dashboard-page .scc-dashboard-sidebar-mobile-close {
        display: none;
    }
    
    .staff-dashboard-page .scc-dashboard-main {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
    
    .staff-dashboard-page .scc-dashboard-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .staff-dashboard-page .scc-dashboard-actions-group {
        flex-direction: row;
        width: auto;
    }
    
    .staff-dashboard-page .scc-dashboard-btn {
        width: auto;
    }
    
    .staff-dashboard-page .scc-dashboard-content {
        padding: 2rem;
    }
    
    .staff-dashboard-page .scc-dashboard-table-section {
        padding: 1.5rem;
    }
}

/* Desktop - EXACT ORIGINAL UI */
@media screen and (min-width: 1024px) {
    .staff-dashboard-page .scc-dashboard-sidebar.collapsed {
        width: 80px;
    }
    
    .staff-dashboard-page .scc-dashboard-sidebar.collapsed + .scc-dashboard-main {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
    
    .staff-dashboard-page .scc-dashboard-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .staff-dashboard-page .scc-dashboard-dropdown-arrow {
        display: inline-block;
    }
    
    .staff-dashboard-page .scc-dashboard-mobile-toggle {
        display: none;
    }
    
    .staff-dashboard-page .scc-dashboard-topbar {
        padding: 0 2rem;
    }
}

/* Large Desktop */
@media screen and (min-width: 1440px) {
    .staff-dashboard-page .scc-dashboard-content {
        padding: 2rem;
    }
}

/* Keep collapse functionality only on desktop */
@media screen and (min-width: 1024px) {
    .staff-dashboard-page .scc-dashboard-sidebar.collapsed .scc-dashboard-logo-sub,
    .staff-dashboard-page .scc-dashboard-sidebar.collapsed .scc-dashboard-logo-main {
        display: none;
    }
    
    .staff-dashboard-page .scc-dashboard-sidebar.collapsed .scc-dashboard-link span {
        display: none;
    }
}

/* Login page responsive - keep exact desktop appearance */
@media screen and (min-width: 768px) {
    .login-wrapper {
        flex-direction: row;
    }
}

/* Touch target optimizations - no visual changes */
@media (max-width: 767px) {
    .staff-dashboard-page .scc-dashboard-link,
    .staff-dashboard-page .scc-dashboard-btn,
    .staff-dashboard-page .toggle-password,
    .login-btn,
    .staff-dashboard-page .scc-dashboard-mobile-toggle,
    .staff-dashboard-page .scc-dashboard-notification-btn,
    .staff-dashboard-page .scc-dashboard-profile-trigger {
        min-height: 48px;
    }
}

/* 
    <!-- Page-specific form styling (inline only for layout, matches dashboard card style) --> */

        .staff-dashboard-page .scc-dashboard-report-form {
            margin-top: 1rem;
        }
        
        .staff-dashboard-page .scc-dashboard-form-row {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            margin-bottom: 1.25rem;
        }
        
        .staff-dashboard-page .scc-dashboard-form-group {
            display: flex;
            flex-direction: column;
            width: 100%;
        }
        
        .staff-dashboard-page .scc-dashboard-form-label {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--color-gray-700);
            margin-bottom: 0.4rem;
        }
        
        .staff-dashboard-page .scc-dashboard-form-input,
        .staff-dashboard-page .scc-dashboard-form-select,
        .staff-dashboard-page .scc-dashboard-form-textarea {
            width: 100%;
            padding: 0.85rem 1rem;
            font-size: 0.95rem;
            border: 1.5px solid var(--color-gray-200);
            border-radius: var(--radius-md);
            background-color: var(--color-white);
            font-family: var(--font-sans);
            transition: border 0.15s ease, box-shadow 0.15s ease;
        }
        
        .staff-dashboard-page .scc-dashboard-form-input:focus,
        .staff-dashboard-page .scc-dashboard-form-select:focus,
        .staff-dashboard-page .scc-dashboard-form-textarea:focus {
            outline: none;
            border-color: var(--color-navy);
            box-shadow: var(--shadow-focus);
        }
        
        .staff-dashboard-page .scc-dashboard-form-select {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 1rem;
        }
        
        .staff-dashboard-page .scc-dashboard-form-textarea {
            resize: vertical;
            min-height: 100px;
        }
        
        .staff-dashboard-page .scc-dashboard-radio-group {
            display: flex;
            gap: 2rem;
            align-items: center;
            padding: 0.5rem 0;
        }
        
        .staff-dashboard-page .scc-dashboard-radio-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--color-gray-700);
            font-size: 0.95rem;
            cursor: pointer;
        }
        
        .staff-dashboard-page .scc-dashboard-radio-input {
            width: 1.1rem;
            height: 1.1rem;
            accent-color: var(--color-navy);
            cursor: pointer;
        }
        
        .staff-dashboard-page .scc-dashboard-radio-text {
            font-weight: 500;
        }
        
        .staff-dashboard-page .scc-dashboard-btn-submit {
            width: 100%;
            min-height: 52px;
            margin-top: 0.5rem;
        }
        
        @media screen and (min-width: 768px) {
            .staff-dashboard-page .scc-dashboard-form-row {
                flex-direction: row;
                gap: 1.5rem;
            }
            
            .staff-dashboard-page .scc-dashboard-form-group {
                flex: 1;
            }
            
            .staff-dashboard-page .scc-dashboard-form-group-half {
                max-width: 50%;
            }
            
            .staff-dashboard-page .scc-dashboard-btn-submit {
                width: auto;
                min-width: 200px;
            }
        }

    .submit_report_link {
        text-decoration: none;
        color: var(--color-navy);
    }


    /* ---------- ATTENDANCE PAGE FILTERS ---------- */
.staff-dashboard-page .scc-dashboard-filters {
    margin-bottom: 2rem;
    width: 100%;
}

.staff-dashboard-page .scc-dashboard-filters-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.staff-dashboard-page .scc-dashboard-filter-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.staff-dashboard-page .scc-dashboard-filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.4rem;
}

.staff-dashboard-page .scc-dashboard-filter-input,
.staff-dashboard-page .scc-dashboard-filter-select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    font-family: var(--font-sans);
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.staff-dashboard-page .scc-dashboard-filter-input:focus,
.staff-dashboard-page .scc-dashboard-filter-select:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: var(--shadow-focus);
}

.staff-dashboard-page .scc-dashboard-filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.staff-dashboard-page .scc-dashboard-filter-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
}

.staff-dashboard-page .scc-dashboard-filter-action {
    justify-content: flex-end;
}

/* ---------- ATTENDANCE TABLE EXTENSIONS ---------- */
.staff-dashboard-page .scc-dashboard-attendance-table {
    min-width: 800px;
}

.staff-dashboard-page .scc-dashboard-attendance-table th,
.staff-dashboard-page .scc-dashboard-attendance-table td {
    white-space: nowrap;
}

/* ---------- ATTENDANCE SUMMARY STATS ---------- */
.staff-dashboard-page .scc-dashboard-attendance-summary {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-100);
    flex-wrap: wrap;
}

.staff-dashboard-page .scc-dashboard-attendance-stat {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.staff-dashboard-page .scc-dashboard-attendance-stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-dashboard-page .scc-dashboard-attendance-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
}

/* ---------- RESPONSIVE FILTERS (Tablet/Desktop) ---------- */
/* ---------- RESPONSIVE FILTERS (Tablet/Desktop) ---------- */
@media screen and (min-width: 768px) {
    .staff-dashboard-page .scc-dashboard-filters-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr auto;
        gap: 1rem;
        align-items: flex-end;
    }
    
    .staff-dashboard-page .scc-dashboard-filter-group {
        width: 100%;
    }
    
    .staff-dashboard-page .scc-dashboard-filter-action {
        display: flex;
        align-items: flex-end;
    }
    
    .staff-dashboard-page .scc-dashboard-filter-btn {
        width: 100%;
        min-width: 120px;
        white-space: nowrap;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 0;
    }
}

@media screen and (min-width: 1024px) {
    .staff-dashboard-page .scc-dashboard-filters-row {
        gap: 1.5rem;
    }
    
    .staff-dashboard-page .scc-dashboard-filter-btn {
        min-width: 140px;
    }
}

@media screen and (min-width: 1024px) {
    .staff-dashboard-page .scc-dashboard-filters-row {
        gap: 2rem;
    }
}

/* ---------- LATE BADGE VARIANT (if not already present) ---------- */
.staff-dashboard-page .scc-dashboard-badge-late {
    background-color: rgba(255, 214, 0, 0.12);
    color: #8a6e00;
}


/* ---------- MONTHLY SUMMARY PAGE ---------- */
.staff-dashboard-page .scc-dashboard-summary-cards {
    margin-bottom: 2.5rem;
}

.staff-dashboard-page .scc-dashboard-summary-table {
    min-width: 700px;
}

.staff-dashboard-page .scc-dashboard-summary-table th,
.staff-dashboard-page .scc-dashboard-summary-table td {
    white-space: nowrap;
}

/* Badge variants for summary statuses */
.staff-dashboard-page .scc-dashboard-badge-completed {
    background-color: #e6f7e6;
    color: #1e7a44;
}

.staff-dashboard-page .scc-dashboard-badge-partial {
    background-color: rgba(255, 214, 0, 0.12);
    color: #8a6e00;
}

.staff-dashboard-page .scc-dashboard-badge-cancelled {
    background-color: rgba(217, 48, 37, 0.08);
    color: var(--color-error);
}

/* Map existing badge classes to summary statuses */
.staff-dashboard-page .scc-dashboard-badge-present.scc-dashboard-badge-completed,
.staff-dashboard-page .scc-dashboard-badge-present.Completed {
    background-color: #e6f7e6;
    color: #1e7a44;
}

/* Ensure cards use existing grid system */
@media screen and (min-width: 768px) {
    .staff-dashboard-page .scc-dashboard-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .staff-dashboard-page .scc-dashboard-summary-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ---------- NOTIFY ABSENCE PAGE ---------- */
.staff-dashboard-page .scc-dashboard-absence-form {
    margin-top: 1rem;
}

.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.4rem;
}

.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-input,
.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-select,
.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    font-family: var(--font-sans);
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-input:focus,
.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-select:focus,
.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-textarea:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: var(--shadow-focus);
}

.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-btn-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 0.5rem;
}

@media screen and (min-width: 768px) {
    .staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-row:first-child,
    .staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-row:has(#return-date) {
        flex-direction: row;
    }
    
    .staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-row:first-child .scc-dashboard-form-group,
    .staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-form-row:has(#return-date) .scc-dashboard-form-group {
        flex: 1;
    }
    
    .staff-dashboard-page .scc-dashboard-absence-form .scc-dashboard-btn-submit {
        width: auto;
        min-width: 220px;
    }
}


/* ---------- PROFILE PAGE ---------- */
.staff-dashboard-page .scc-dashboard-profile-card {
    margin-bottom: 2rem;
}

.staff-dashboard-page .scc-dashboard-profile-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.staff-dashboard-page .scc-dashboard-profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.staff-dashboard-page .scc-dashboard-profile-avatar-wrapper {
    display: flex;
    justify-content: center;
}

.staff-dashboard-page .scc-dashboard-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 2rem;
}

.staff-dashboard-page .scc-dashboard-profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

.staff-dashboard-page .scc-dashboard-profile-role {
    font-size: 1rem;
    color: var(--color-gray-500);
    margin-bottom: 0.75rem;
}

.staff-dashboard-page .scc-dashboard-profile-schools {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.staff-dashboard-page .scc-dashboard-profile-schools-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

.staff-dashboard-page .scc-dashboard-profile-schools-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.staff-dashboard-page .scc-dashboard-profile-schools-list li {
    background-color: var(--color-gray-100);
    color: var(--color-gray-700);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}

.staff-dashboard-page .scc-dashboard-profile-right {
    width: 100%;
}

.staff-dashboard-page .scc-dashboard-profile-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.staff-dashboard-page .scc-dashboard-profile-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.staff-dashboard-page .scc-dashboard-profile-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-dashboard-page .scc-dashboard-profile-detail-value {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    word-break: break-word;
}

/* Profile Form */
.staff-dashboard-page .scc-dashboard-profile-form {
    margin-top: 1.5rem;
}

.staff-dashboard-page .scc-dashboard-profile-form .scc-dashboard-form-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.staff-dashboard-page .scc-dashboard-profile-form .scc-dashboard-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.staff-dashboard-page .scc-dashboard-profile-form .scc-dashboard-form-group:empty {
    display: none;
}

.staff-dashboard-page .scc-dashboard-profile-form .scc-dashboard-btn-save {
    width: 100%;
    min-height: 52px;
    margin-top: 0.5rem;
}

/* Tablet/Desktop */
@media screen and (min-width: 768px) {
    .staff-dashboard-page .scc-dashboard-profile-container {
        flex-direction: row;
        gap: 2.5rem;
    }
    
    .staff-dashboard-page .scc-dashboard-profile-left {
        flex: 1;
        align-items: flex-start;
        text-align: left;
    }
    
    .staff-dashboard-page .scc-dashboard-profile-schools-list {
        justify-content: flex-start;
    }
    
    .staff-dashboard-page .scc-dashboard-profile-right {
        flex: 1;
    }
    
    .staff-dashboard-page .scc-dashboard-profile-detail-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--color-gray-100);
    }
    
    .staff-dashboard-page .scc-dashboard-profile-detail-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .staff-dashboard-page .scc-dashboard-profile-form .scc-dashboard-form-row {
        flex-direction: row;
    }
    
    .staff-dashboard-page .scc-dashboard-profile-form .scc-dashboard-form-group {
        flex: 1;
    }
    
    .staff-dashboard-page .scc-dashboard-profile-form .scc-dashboard-btn-save {
        width: auto;
        min-width: 180px;
    }
}

@media screen and (min-width: 1024px) {
    .staff-dashboard-page .scc-dashboard-profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.25rem;
    }
    
    .staff-dashboard-page .scc-dashboard-profile-name {
        font-size: 1.65rem;
    }
}

/* ---------- NOTIFICATIONS PAGE ---------- */
.staff-dashboard-page .scc-dashboard-notifications-subtitle {
    color: var(--color-gray-500);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.staff-dashboard-page .scc-dashboard-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.staff-dashboard-page .scc-dashboard-notification-item {
    margin-bottom: 0;
    padding: 1.25rem;
}

.staff-dashboard-page .scc-dashboard-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.staff-dashboard-page .scc-dashboard-notification-title {
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: 1rem;
}

.staff-dashboard-page .scc-dashboard-notification-unread .scc-dashboard-notification-title {
    font-weight: 700;
    color: var(--color-navy);
}

.staff-dashboard-page .scc-dashboard-notification-time {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    white-space: nowrap;
    margin-left: 0.5rem;
}

.staff-dashboard-page .scc-dashboard-notification-message {
    font-size: 0.9rem;
    color: var(--color-gray-700);
    margin-bottom: 0.75rem;
}

.staff-dashboard-page .scc-dashboard-notification-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--color-gray-100);
    color: var(--color-gray-700);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

/* ---------- REMOVE SIDEBAR SCROLLBAR ---------- */
.staff-dashboard-page .scc-dashboard-nav {
    overflow-y: visible;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.staff-dashboard-page .scc-dashboard-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* ---------- FIX MOBILE SIDEBAR BUTTON OVERLAP ---------- */
@media screen and (max-width: 767px) {
    .staff-dashboard-page .scc-dashboard-sidebar-collapse {
        display: none !important;
    }
    
    .staff-dashboard-page .scc-dashboard-sidebar-header {
        padding-right: 3.5rem; /* Make space for the X button */
    }
}


/* ---------- FINAL MOBILE HEADER FIX - SHOW FULL HEADING ---------- */
@media screen and (max-width: 480px) {
    .staff-dashboard-page .scc-dashboard-topbar {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .staff-dashboard-page .scc-dashboard-topbar-left {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 110px); /* Reserve space for icons */
    }
    
    .staff-dashboard-page .scc-dashboard-mobile-toggle {
        flex-shrink: 0;
    }
    
    .staff-dashboard-page .scc-dashboard-page-title {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        white-space: normal !important; /* Allow wrapping */
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
        word-break: break-word;
        line-height: 1.3;
        margin: 0;
        display: block;
        width: auto;
    }
    
    .staff-dashboard-page .scc-dashboard-topbar-right {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        flex-shrink: 0;
    }
    
    .staff-dashboard-page .scc-dashboard-notification-btn {
        position: relative;
        padding: 0.4rem;
        min-width: 38px;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .staff-dashboard-page .scc-dashboard-notification-btn i {
        font-size: 1.1rem;
    }
    
    .staff-dashboard-page .scc-notification-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        min-width: 14px;
        height: 14px;
        font-size: 0.55rem;
        line-height: 14px;
        padding: 0 3px;
        background-color: var(--color-yellow);
        color: var(--color-navy);
        border-radius: 20px;
        font-weight: 700;
        text-align: center;
    }
    
    .staff-dashboard-page .scc-dashboard-profile-trigger {
        padding: 0.2rem;
        min-height: 38px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .staff-dashboard-page .scc-dashboard-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .staff-dashboard-page .scc-dashboard-dropdown-arrow {
        /* display: none; */
    }
}

@media screen and (max-width: 375px) {
    .staff-dashboard-page .scc-dashboard-page-title {
        font-size: 1.05rem !important;
    }
    
    .staff-dashboard-page .scc-dashboard-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .staff-dashboard-page .scc-dashboard-notification-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 0.3rem;
    }
    
    .staff-dashboard-page .scc-dashboard-notification-btn i {
        font-size: 1.25rem;
    }
    
    .staff-dashboard-page .scc-notification-badge {
        min-width: 12px;
        height: 12px;
        font-size: 0.5rem;
        line-height: 12px;
    }
}

@media screen and (max-width: 320px) {
    .staff-dashboard-page .scc-dashboard-page-title {
        font-size: 0.9rem !important;
    }
    
    .staff-dashboard-page .scc-dashboard-topbar-left {
        max-width: calc(100% - 90px);
    }
}

/* ---------- REMOVE ALL NOTIFICATION BUTTON COLORS ---------- */
.staff-dashboard-page .scc-dashboard-notification-btn {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--color-gray-700) !important;
}

.staff-dashboard-page .scc-dashboard-notification-btn:hover,
.staff-dashboard-page .scc-dashboard-notification-btn:focus,
.staff-dashboard-page .scc-dashboard-notification-btn:active,
.staff-dashboard-page .scc-dashboard-notification-btn:focus-visible,
.staff-dashboard-page .scc-dashboard-notification-btn:visited {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--color-gray-700) !important;
}

.staff-dashboard-page .scc-dashboard-notification-btn i {
    color: var(--color-gray-700) !important;
}

.staff-dashboard-page .scc-dashboard-notification-btn:hover i,
.staff-dashboard-page .scc-dashboard-notification-btn:focus i,
.staff-dashboard-page .scc-dashboard-notification-btn:active i {
    color: var(--color-gray-700) !important;
}

/* ---------- MOBILE LOGIN/REGISTER HEADER REDUCTION ---------- */
@media screen and (max-width: 480px) {
    .login-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

@media screen and (max-width: 375px) {
    .login-title {
        font-size: 1.35rem !important;
    }
}

.to-register {
    margin-top: 15px;
}

/* ---------- FIX EYE ICON AND REPLACE WITH PROFESSIONAL ICONS ---------- */
.staff-dashboard-page .password-wrapper,
.login-wrapper .password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.staff-dashboard-page .toggle-password,
.login-wrapper .toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-500);
    transition: color 0.15s;
    min-height: 44px;
    min-width: 44px;
    z-index: 10;
}

.staff-dashboard-page .toggle-password:hover,
.login-wrapper .toggle-password:hover {
    color: var(--color-navy);
}

.staff-dashboard-page .toggle-password i,
.login-wrapper .toggle-password i {
    font-size: 1.25rem;
    pointer-events: none;
}

.staff-dashboard-page .eye-icon,
.staff-dashboard-page .eye-icon-off,
.login-wrapper .eye-icon,
.login-wrapper .eye-icon-off {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- FIX EYE ICON VISIBILITY ---------- */
.staff-dashboard-page .toggle-password i,
.login-wrapper .toggle-password i {
    font-size: 1.25rem;
    display: inline-block;
}

.staff-dashboard-page .eye-icon,
.staff-dashboard-page .eye-icon-off,
.login-wrapper .eye-icon,
.login-wrapper .eye-icon-off {
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-dashboard-page .eye-icon-off,
.login-wrapper .eye-icon-off {
    display: none;
}

/* ---------- MOBILE EYE ICON SIZE REDUCTION ---------- */
@media screen and (max-width: 480px) {
    .staff-dashboard-page .toggle-password i,
    .login-wrapper .toggle-password i {
        font-size: 1.1rem !important;
    }
    
    .staff-dashboard-page .toggle-password,
    .login-wrapper .toggle-password {
        min-height: 40px;
        min-width: 40px;
        right: 0.5rem;
    }
}

@media screen and (max-width: 375px) {
    .staff-dashboard-page .toggle-password i,
    .login-wrapper .toggle-password i {
        font-size: 1rem !important;
    }
}

/* ---------- LOGIN REMEMBER ROW FIX ---------- */
@media screen and (max-width: 480px) {
    .login-remember-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: -35px !important;
        /* margin-bottom: 1.5rem !important; */
        width: 100% !important;
    }
    
    .login-remember-row .checkbox-label {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }
    
    .login-remember-row .checkbox-input {
        width: 0.72rem !important;
        height: 0.72rem !important;
        
    }
    
    .login-remember-row .forgot-link {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }
}

/* ---------- PAGE HEADER WITH ACTION BUTTON ---------- */
.staff-dashboard-page .scc-dashboard-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.staff-dashboard-page .scc-dashboard-page-subtitle {
    color: var(--color-gray-500);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.staff-dashboard-page .scc-dashboard-action-btn {
    white-space: nowrap;
}

@media screen and (max-width: 480px) {
    .staff-dashboard-page .scc-dashboard-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .staff-dashboard-page .scc-dashboard-action-btn {
        width: auto;
        min-width: 140px;
    }
}

/* ======================================================
   SCC MODAL SYSTEM - Reusable Popup Card
   ====================================================== */

/* Modal Overlay */
.scc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

.scc-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.scc-modal-container {
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.scc-modal-overlay.active .scc-modal-container {
    transform: scale(1);
}

/* Modal Content */
.scc-modal-content {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.scc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.scc-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0;
}

.scc-modal-close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    min-width: 40px;
    min-height: 40px;
}

.scc-modal-close-btn:hover {
    background-color: var(--color-gray-100);
    color: var(--color-gray-700);
}

/* Modal Body */
.scc-modal-body {
    padding: 1.5rem;
}

/* Profile Section */
.scc-modal-profile-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.scc-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 2rem;
    flex-shrink: 0;
}

.scc-modal-status-badge {
    flex: 1;
}

.scc-modal-status-badge .scc-dashboard-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Details Grid */
.scc-modal-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.scc-modal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.scc-modal-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scc-modal-detail-value {
    font-size: 1rem;
    color: var(--color-gray-700);
    word-break: break-word;
}

/* Modal Footer */
.scc-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--color-gray-100);
}

.scc-modal-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    min-height: 44px;
}

.scc-modal-btn-suspend {
    background-color: var(--color-error);
    color: white;
}

.scc-modal-btn-suspend:hover {
    background-color: #b02b20;
}

.scc-modal-btn-suspend.active {
    background-color: var(--color-navy);
}

.scc-modal-btn-suspend.active:hover {
    background-color: #151238;
}

.scc-modal-btn-close {
    background-color: var(--color-gray-100);
    color: var(--color-gray-700);
}

.scc-modal-btn-close:hover {
    background-color: var(--color-gray-200);
}

/* Mobile Responsive */
@media screen and (max-width: 480px) {
    .scc-modal-profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .scc-modal-footer {
        flex-direction: column;
    }
    
    .scc-modal-btn {
        width: 100%;
    }
    
    .scc-modal-container {
        width: 95%;
    }
}

/* Tablet */
@media screen and (min-width: 768px) {
    .scc-modal-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ======================================================
   REPORT DETAILS POPUP - Additional Styles
   ====================================================== */

/* Full width detail item */
.scc-modal-detail-item-full {
    grid-column: 1 / -1;
}

/* Modal footer with three buttons */
.scc-modal-footer:has(.scc-modal-btn-approve) {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.scc-modal-btn-approve {
    background-color: #1e7a44;
    color: white;
    flex: 1;
}

.scc-modal-btn-approve:hover {
    background-color: #166034;
}

.scc-modal-btn-reject {
    background-color: var(--color-error);
    color: white;
    flex: 1;
}

.scc-modal-btn-reject:hover {
    background-color: #b02b20;
}

/* Status badge colors for report statuses */
.scc-dashboard-badge-approved {
    background-color: #e6f7e6;
    color: #1e7a44;
}

.scc-dashboard-badge-rejected {
    background-color: rgba(217, 48, 37, 0.08);
    color: var(--color-error);
}

/* Mobile responsive for three buttons */
@media screen and (max-width: 480px) {
    .scc-modal-footer:has(.scc-modal-btn-approve) {
        flex-direction: column;
    }
    
    .scc-modal-btn-approve,
    .scc-modal-btn-reject,
    .scc-modal-btn-close {
        width: 100%;
    }
}

/* ======================================================
   SCHOOL MODAL - Additional Styles
   ====================================================== */

.scc-modal-btn-edit {
    background-color: var(--color-yellow);
    color: var(--color-navy);
    flex: 1;
}

.scc-modal-btn-edit:hover {
    background-color: var(--color-yellow-dark);
}

.scc-modal-btn-disable {
    background-color: var(--color-error);
    color: white;
    flex: 1;
}

.scc-modal-btn-disable:hover {
    background-color: #b02b20;
}

.scc-modal-btn-disable.active {
    background-color: var(--color-navy);
}

.scc-modal-btn-disable.active:hover {
    background-color: #151238;
}

/* Edit mode inputs */
.scc-modal-detail-value input,
.scc-modal-detail-value select {
    width: 100%;
    margin-top: 0.25rem;
}

/* ======================================================
   MOBILE PROFILE DROPDOWN - Clean and Balanced
   ====================================================== */

@media screen and (max-width: 480px) {
    .staff-dashboard-page .scc-dashboard-profile-trigger {
        gap: 0.25rem;
        padding: 0.2rem 0.25rem;
    }
    
    .staff-dashboard-page .scc-dashboard-dropdown-arrow {
        display: inline-block;
        font-size: 0.8rem;
        color: var(--color-gray-500);
    }
    
    .staff-dashboard-page .scc-dashboard-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}

/* ======================================================
   MOBILE STAT CARDS - Reduced Size
   ====================================================== */

@media screen and (max-width: 480px) {
    .staff-dashboard-page .scc-dashboard-card {
        padding: 1.5rem !important;
    }
    
    .staff-dashboard-page .scc-dashboard-card-value {
        font-size: 1.6rem !important;
    }
    
    .staff-dashboard-page .scc-dashboard-card-label {
        font-size: 0.7rem !important;
    }
    
    .staff-dashboard-page .scc-dashboard-card-icon {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* For very small screens */
@media screen and (max-width: 360px) {
    .staff-dashboard-page .scc-dashboard-card-value {
        font-size: 1.4rem !important;
    }
    
    .staff-dashboard-page .scc-dashboard-card-label {
        font-size: 0.65rem !important;
    }
    
    .staff-dashboard-page .scc-dashboard-card {
        padding: 1rem !important;
    }
}

/* ======================================================
   PROFILE AVATAR SYSTEM - Clean and Precise
   ====================================================== */

/* Topbar Avatar (Navbar) */
.scc-dashboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.scc-dashboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.scc-dashboard-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Profile Page Avatar (Larger) */
.scc-dashboard-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 2rem;
    overflow: hidden;
    position: relative;
}

.scc-dashboard-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.scc-dashboard-profile-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.scc-dashboard-profile-avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .scc-dashboard-profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .scc-dashboard-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* Multi-select styling */
.scc-dashboard-form-select[multiple] {
    height: auto;
    min-height: 120px;
    padding: 0.5rem;
}

.scc-dashboard-form-select[multiple] option {
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius-sm);
}

.scc-dashboard-form-select[multiple] option:checked {
    background-color: var(--color-navy);
    color: white;
}

.scc-dashboard-form-select[multiple] option:hover {
    background-color: var(--color-gray-100);
}

.scc-dashboard-form-hint {
    display: block;
    color: var(--color-gray-500);
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

/* ======================================================
   CUSTOM MULTI-SELECT WITH TAGS
   ====================================================== */

.scc-multiselect-container {
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    transition: border 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.scc-multiselect-container:focus-within {
    border-color: var(--color-navy);
    box-shadow: var(--shadow-focus);
}

.scc-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem 0 0.5rem;
    min-height: 2.5rem;
}

.scc-selected-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-gray-100);
    border-radius: 20px;
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    font-size: 0.85rem;
    color: var(--color-gray-700);
    font-weight: 500;
    animation: tagFadeIn 0.2s ease;
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scc-selected-tag button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 0.35rem;
    padding: 0.1rem 0.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-500);
    border-radius: 50%;
    transition: all 0.15s;
}

.scc-selected-tag button:hover {
    background-color: var(--color-gray-200);
    color: var(--color-gray-700);
}

.scc-selected-tag button i {
    font-size: 0.7rem;
    pointer-events: none;
}

.scc-multiselect-input-wrapper {
    position: relative;
    padding: 0.5rem;
    border-top: 1px solid var(--color-gray-100);
}

.scc-multiselect-input {
    width: 100%;
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    font-size: 0.9rem;
    border: none;
    outline: none;
    background-color: transparent;
    font-family: var(--font-sans);
}

.scc-multiselect-input::placeholder {
    color: var(--color-gray-400);
}

.scc-multiselect-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-500);
    pointer-events: none;
    font-size: 0.8rem;
}

.scc-multiselect-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: -1px;
    right: -1px;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-soft);
}

.scc-multiselect-dropdown.show {
    display: block;
}

.scc-multiselect-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
    font-size: 0.9rem;
}

.scc-multiselect-option:hover {
    background-color: var(--color-gray-50);
}

.scc-multiselect-option.selected {
    background-color: rgba(30, 27, 75, 0.05);
    color: var(--color-navy);
    font-weight: 500;
    position: relative;
}

.scc-multiselect-option.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    color: var(--color-navy);
    font-size: 0.8rem;
}

.scc-profile-status {
    margin-top: 0.25rem;
}

.scc-profile-status .scc-dashboard-badge {
    font-size: 0.85rem;
    padding: 0.2rem 1rem;
    display: inline-block;
}

/* ======================================================
   PROFILE IMAGE UPLOAD
   ====================================================== */

.scc-profile-image-upload {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.scc-current-avatar {
    flex-shrink: 0;
}

.scc-current-avatar img,
.scc-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.scc-image-upload-input {
    flex: 1;
    min-width: 200px;
}

.scc-image-upload-input input[type="file"] {
    padding: 0.5rem;
    border: 1.5px dashed var(--color-gray-200);
    background-color: var(--color-gray-50);
    cursor: pointer;
}

.scc-image-upload-input input[type="file"]:hover {
    border-color: var(--color-gray-400);
}

@media screen and (max-width: 480px) {
    .scc-profile-image-upload {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .scc-current-avatar {
        align-self: center;
    }
}

.scc-modal-btn-edit {
    background-color: var(--color-yellow);
    color: var(--color-navy);
    flex: 1;
}

.scc-modal-btn-edit:hover {
    background-color: var(--color-yellow-dark);
}

.scc-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--color-gray-100);
}

.scc-modal-btn-close {
    background-color: var(--color-gray-100);
    color: var(--color-gray-700);
    flex: 1;
}

.scc-modal-btn-close:hover {
    background-color: var(--color-gray-200);
}

/* ======================================================
   MODAL BUTTON SIZE REDUCTION
   ====================================================== */

.scc-modal-footer .scc-modal-btn {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.85rem !important;
    min-height: 38px !important;
}

.scc-modal-footer .scc-modal-btn i {
    font-size: 0.9rem !important;
}

.scc-modal-footer {
    gap: 0.75rem !important;
    padding: 1rem 1.5rem 1.5rem !important;
}

/* For even smaller screens */
@media screen and (max-width: 480px) {
    .scc-modal-footer .scc-modal-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
        min-height: 36px !important;
    }
}

/* ======================================================
   ADMIN PROFILE IMAGE UPLOAD
   ====================================================== */

.scc-profile-image-upload {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.scc-current-avatar {
    flex-shrink: 0;
}

.scc-current-avatar img,
.scc-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.scc-image-upload-input {
    flex: 1;
    min-width: 200px;
}

.scc-image-upload-input input[type="file"] {
    padding: 0.5rem;
    border: 1.5px dashed var(--color-gray-200);
    background-color: var(--color-gray-50);
    cursor: pointer;
}

.scc-image-upload-input input[type="file"]:hover {
    border-color: var(--color-gray-400);
}

@media screen and (max-width: 480px) {
    .scc-profile-image-upload {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .scc-current-avatar {
        align-self: center;
    }
}

/* ======================================================
   PROFILE DROPDOWN SHADOW - Clean and Professional
   ====================================================== */

.scc-dashboard-dropdown-menu {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15), 
                0 8px 15px -6px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid var(--color-gray-100) !important;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slightly stronger shadow on hover/focus */
.scc-dashboard-profile-trigger:hover + .scc-dashboard-dropdown-menu,
.scc-dashboard-dropdown-menu:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15), 
                0 10px 15px -6px rgba(0, 0, 0, 0.05) !important;
}

/* ======================================================
   STAFF MODAL FIXES
   ====================================================== */

.scc-modal-avatar-container {
    position: relative;
    display: inline-block;
}

.scc-modal-avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: var(--color-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: background-color 0.15s;
    border: 2px solid var(--color-white);
    z-index: 10;
}

.scc-modal-avatar-upload:hover {
    background-color: #151238;
}

.scc-modal-avatar-upload i {
    font-size: 0.9rem;
    pointer-events: none;
}

.scc-modal-btn-edit {
    background-color: var(--color-yellow);
    color: var(--color-navy);
}

.scc-modal-btn-edit:hover {
    background-color: var(--color-yellow-dark);
}

.scc-modal-edit-input {
    width: 100%;
    padding: 0.5rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
}

/* ======================================================
   TAG STYLE MULTI-SELECT FOR SCHOOLS
   ====================================================== */

/* Tags container */
.scc-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    min-height: 2rem;
}

/* Tag styling for edit mode (with X) */
.scc-school-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    color: var(--color-gray-700);
    font-weight: 500;
    transition: all 0.15s;
}

.scc-school-tag i {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    color: var(--color-gray-500);
    transition: color 0.15s;
}

.scc-school-tag i:hover {
    color: var(--color-error);
}

/* View mode tags (no remove icon) */
.scc-view-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-gray-100);
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.85rem;
    color: var(--color-gray-700);
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

/* Dropdown container */
.scc-schools-dropdown-container {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
}

.scc-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    cursor: pointer;
    transition: border 0.15s;
}

.scc-dropdown-header:hover {
    border-color: var(--color-gray-400);
}

.scc-dropdown-header i {
    color: var(--color-gray-500);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.scc-dropdown-header.active i {
    transform: rotate(180deg);
}

.scc-schools-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    z-index: 100;
}

.scc-school-option {
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px solid var(--color-gray-100);
}

.scc-school-option:last-child {
    border-bottom: none;
}

.scc-school-option:hover {
    background-color: var(--color-gray-50);
}

.scc-school-option.selected {
    background-color: rgba(30, 27, 75, 0.05);
    color: var(--color-navy);
    font-weight: 500;
}

/* Edit section styling */
.scc-edit-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-gray-200);
}

.scc-edit-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ======================================================
   IMPROVED TAG STYLE MULTI-SELECT FOR SCHOOLS
   ====================================================== */

/* Tags container - more visible */
.scc-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.5rem;
    background-color: var(--color-gray-50);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-gray-200);
}

/* Tag styling for edit mode (with X) */
.scc-school-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    color: var(--color-gray-700);
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.15s;
}

.scc-school-tag i {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    color: var(--color-gray-500);
    transition: color 0.15s;
}

.scc-school-tag i:hover {
    color: var(--color-error);
}

/* View mode tags (no remove icon) */
.scc-view-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-gray-100);
    border-radius: 20px;
    padding: 0.25rem 0.8rem;
    font-size: 0.85rem;
    color: var(--color-gray-700);
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    border: 1px solid var(--color-gray-200);
}

/* Dropdown container */
.scc-schools-dropdown-container {
    position: relative;
    width: 100%;
    margin-top: 0.25rem;
}

/* Dropdown header */
.scc-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.scc-dropdown-header:hover {
    border-color: var(--color-gray-400);
    background-color: var(--color-gray-50);
}

.scc-dropdown-header.active {
    border-color: var(--color-navy);
    box-shadow: var(--shadow-focus);
}

.scc-dropdown-header.active i {
    transform: rotate(180deg);
}

.scc-dropdown-header i {
    color: var(--color-gray-500);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

/* Dropdown options */
.scc-schools-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 4px;
}

.scc-school-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px solid var(--color-gray-100);
    font-size: 0.9rem;
}

.scc-school-option:last-child {
    border-bottom: none;
}

.scc-school-option:hover {
    background-color: var(--color-gray-50);
}

.scc-school-option.selected {
    background-color: rgba(30, 27, 75, 0.05);
    color: var(--color-navy);
    font-weight: 500;
    position: relative;
}

.scc-school-option.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    color: var(--color-navy);
    font-size: 0.8rem;
}

/* Edit section */
.scc-edit-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-gray-200);
    width: 100%;
}

.scc-edit-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}