/* css/style.css - Universal Floating Glass & Mobile App Dashboard Theme */

:root {
    --bg-dark-blue: #050b1a;
    --bg-surface: #0a1432;
    
    --glass-bg: rgba(10, 21, 48, 0.75);
    --glass-bg-hover: rgba(16, 32, 72, 0.85);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-gold: rgba(251, 191, 36, 0.4);
    --glass-border-blue: rgba(59, 130, 246, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --dark-yellow: #fbbf24;
    --dark-yellow-hover: #f59e0b;
    --dark-yellow-gradient: linear-gradient(135deg, #ffd700 0%, #fbbf24 50%, #d97706 100%);
    --gold-glow: rgba(251, 191, 36, 0.35);
    --gold-glow-soft: rgba(251, 191, 36, 0.15);
    
    --dark-blue-accent: #2563eb;
    --dark-blue-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --blue-glow: rgba(59, 130, 246, 0.35);
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --input-bg: rgba(4, 9, 24, 0.95);
}

*, *::before, *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-dark-blue);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(251, 191, 36, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(10, 20, 48, 0.95) 0%, rgba(5, 11, 26, 1) 100%);
    color: var(--text-primary);
}

.container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 24px !important;
    box-sizing: border-box !important;
}

/* Universal Floating Glass Header */
.floating-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 24px 0 24px !important;
    box-sizing: border-box !important;
}

.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 24px !important;
    background: rgba(8, 16, 38, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    box-sizing: border-box !important;
}

.brand-badge {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050b1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    flex-shrink: 0;
    object-fit: cover;
}

.brand-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.68rem;
    color: var(--dark-yellow);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
}

/* Master Segmented Tab Control */
.nav-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(6, 13, 32, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 6px !important;
    border-radius: 10px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tabs button {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 7px !important;
    color: var(--text-secondary) !important;
    padding: 0 14px !important;
    height: 36px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    text-align: center !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex: 1 1 0px !important;
    min-width: fit-content !important;
}

.nav-tabs button span.tab-icon {
    font-size: 0.95rem;
    line-height: 1;
    display: inline-block;
}

.nav-tabs button:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.nav-tabs button.active {
    background: var(--dark-yellow-gradient) !important;
    border: 1px solid #fbbf24 !important;
    color: #050b1a !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.35) !important;
    font-weight: 900 !important;
}

/* Strict Tab Content Visibility */
.tab-content { 
    display: none !important; 
    width: 100% !important;
    box-sizing: border-box !important;
}
.tab-content.active { 
    display: block !important; 
    animation: fadeIn 0.3s ease-out !important; 
}

/* Glass Panels & Cards */
.glass-panel {
    background: rgba(8, 16, 38, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box !important;
}

.glass-panel-gold {
    border-color: rgba(251, 191, 36, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.glass-panel-blue {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Compact Centered Login Cards for Admin & Teacher Portals (100dvh Screen-Fit) */
.login-card,
.glass-panel.login-card,
#selection-screen.login-card {
    max-width: 400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 22px 22px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
    text-align: center;
}

.login-card .form-group {
    margin-bottom: 10px !important;
}

.login-card .form-control {
    height: 40px !important;
    font-size: 0.88rem !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
}

.login-card button[type="submit"],
.login-card #btn-authenticate {
    height: 42px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    width: 100% !important;
}

/* Teacher Portal Viewport Fit on Selection/Login */
.container.teacher-login-mode {
    min-height: calc(100dvh - 30px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* Mobile Screen-Adjusted Fixes (Zero Scroll on Login / Landing) */
@media (max-width: 768px) {
    .login-card,
    .glass-panel.login-card,
    #selection-screen.login-card {
        max-width: 350px !important;
        padding: 14px 16px !important;
        border-radius: 14px !important;
        margin: 0 auto !important;
    }

    .login-card .brand-logo,
    .login-card .login-logo,
    #selection-screen img {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 6px !important;
    }

    .login-card h1,
    #selection-screen h1 {
        font-size: 1.15rem !important;
        margin-bottom: 2px !important;
        line-height: 1.1 !important;
    }

    .login-card .login-portal-tag,
    #selection-screen .login-portal-tag {
        font-size: 0.72rem !important;
        margin-bottom: 4px !important;
    }

    .login-card .login-desc,
    #selection-screen .login-desc {
        font-size: 0.74rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .login-card .form-group {
        margin-bottom: 7px !important;
    }

    .login-card .form-group label {
        font-size: 0.76rem !important;
        margin-bottom: 2px !important;
    }

    .login-card .form-control {
        height: 36px !important;
        font-size: 0.84rem !important;
        padding: 6px 10px !important;
    }

    .login-card button[type="submit"],
    .login-card #btn-authenticate {
        height: 38px !important;
        font-size: 0.88rem !important;
        margin-bottom: 6px !important;
        margin-top: 6px !important;
    }

    .login-card .substitute-box {
        padding: 6px 10px !important;
        margin-bottom: 8px !important;
        font-size: 0.78rem !important;
    }
}

/* ==========================================================================
   Custom Teacher Select Dropdown with Rich Hover & Touch Highlights
   ========================================================================== */
.custom-select-trigger {
    transition: all 0.2s ease;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus,
.custom-select-trigger.active {
    outline: none !important;
    border-color: var(--dark-yellow) !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2) !important;
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 270px;
    background: rgba(6, 12, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(251, 191, 36, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dropdownFadeIn 0.18s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-select-dropdown.hidden {
    display: none !important;
}

.custom-dropdown-search-wrap {
    padding: 8px 10px;
    background: rgba(10, 20, 48, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-dropdown-search {
    width: 100%;
    height: 32px;
    background: rgba(4, 8, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 4px 10px;
    color: #ffffff;
    font-size: 0.8rem;
    outline: none;
    box-sizing: border-box;
}

.custom-dropdown-search:focus {
    border-color: #60a5fa;
}

.custom-dropdown-list {
    overflow-y: auto;
    max-height: 220px;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--dark-yellow) rgba(10, 20, 48, 0.5);
}

.custom-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb {
    background: var(--dark-yellow);
    border-radius: 4px;
}

.custom-dropdown-group-header {
    padding: 6px 12px 3px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #93c5fd;
    background: rgba(30, 58, 138, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.custom-dropdown-group-header:first-child {
    border-top: none;
    margin-top: 0;
}

.custom-teacher-item {
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    user-select: none;
}

.custom-teacher-item:hover,
.custom-teacher-item.highlighted {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.45) 0%, rgba(251, 191, 36, 0.18) 100%) !important;
    border-left: 4px solid #fbbf24 !important;
    padding-left: 17px !important;
}

.custom-teacher-item:hover .teacher-item-name,
.custom-teacher-item.highlighted .teacher-item-name {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.custom-teacher-item:hover .teacher-item-badge,
.custom-teacher-item.highlighted .teacher-item-badge {
    background: rgba(251, 191, 36, 0.25) !important;
    border-color: #fbbf24 !important;
    color: #fbbf24 !important;
}

.custom-teacher-item.selected {
    background: rgba(37, 99, 235, 0.3) !important;
    border-left: 4px solid #60a5fa !important;
}

.teacher-item-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    transition: color 0.15s ease;
}

.teacher-item-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    transition: all 0.15s ease;
}

/* Native Option Fallback Styling (for non-Chromium or OS select menus) */
select option,
select optgroup {
    background: #081028 !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}
select option:hover,
select option:focus,
select option:checked {
    background: #1d4ed8 !important;
    color: #fbbf24 !important;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 25px 12px 15px 12px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 12px;
    color: white;
}

.hero-title-accent {
    color: var(--dark-yellow);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}

/* Portal Access Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.portal-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.portal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-icon-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.portal-icon-gold { background: rgba(251, 191, 36, 0.2); color: var(--dark-yellow); border: 1px solid rgba(251, 191, 36, 0.4); }

.portal-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.portal-card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Dashboard Grid & Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 900px) {
    .dashboard-grid { grid-template-columns: 1.3fr 1fr; }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.stat-card {
    text-align: center;
    padding: 14px 12px;
    border-radius: 14px;
}

.stat-card h3 {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 2px 0;
    line-height: 1.1;
}

.stat-card.boys .value { color: #60a5fa; text-shadow: 0 0 12px rgba(96, 165, 250, 0.4); }
.stat-card.girls .value { color: var(--dark-yellow); text-shadow: 0 0 12px rgba(251, 191, 36, 0.4); }

.notification-card {
    background: rgba(6, 13, 32, 0.85);
    border: 1px solid var(--glass-border-blue);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.82rem;
}

.notification-card:hover {
    border-color: var(--dark-yellow);
    transform: translateY(-1px);
}

/* Forms & Inputs */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

.form-group {
    margin-bottom: 10px;
    text-align: left;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
}

.form-control {
    width: 100% !important;
    max-width: 100% !important;
    height: 38px;
    padding: 8px 12px;
    background: rgba(4, 9, 24, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 9px !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
    display: block !important;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none !important;
    border-color: var(--dark-yellow) !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2) !important;
}

select.form-control {
    color: #ffffff !important;
    background-color: rgba(4, 9, 24, 0.95) !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23fbbf24' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 28px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* White & Crisp Calendar Picker Indicator for Dark Mode Date Inputs */
input[type="date"],
input[type="month"],
input[type="time"] {
    color-scheme: dark !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='%23ffffff'><path d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/><circle cx='8' cy='13' r='1.2' fill='%23fbbf24'/><circle cx='12' cy='13' r='1.2' fill='%23fbbf24'/><circle cx='16' cy='13' r='1.2' fill='%23fbbf24'/><circle cx='8' cy='17' r='1.2' fill='%23fbbf24'/><circle cx='12' cy='17' r='1.2' fill='%23fbbf24'/><circle cx='16' cy='17' r='1.2' fill='%23fbbf24'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    width: 24px !important;
    height: 24px !important;
    opacity: 1 !important;
    filter: none !important;
    border-radius: 5px !important;
    padding: 2px !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="month"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    transform: scale(1.15) !important;
    background-color: rgba(251, 191, 36, 0.2) !important;
}

/* Buttons - 5-Tier Functional Architecture */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: auto;
    box-sizing: border-box !important;
    line-height: 1.2;
}

.btn-block {
    width: 100% !important;
}

/* Tier 1: Primary Action (Gold) */
.btn-primary-gold,
.btn-warning {
    background: var(--dark-yellow-gradient) !important;
    color: #050b1a !important;
    font-weight: 800 !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.25);
}
.btn-primary-gold:hover,
.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}

/* Tier 2: Secondary / Navigation (Blue) */
.btn-secondary-blue,
.btn-primary {
    background: var(--dark-blue-gradient) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
}
.btn-secondary-blue:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

/* Tier 3: Neutral / Secondary Action (Slate) */
.btn-neutral-slate,
.btn-secondary {
    background: rgba(100, 116, 139, 0.2) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}
.btn-neutral-slate:hover,
.btn-secondary:hover {
    background: rgba(100, 116, 139, 0.35) !important;
    color: #ffffff !important;
}

/* Tier 4: Success Action (Green) */
.btn-success-green,
.btn-success {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
}
.btn-success-green:hover,
.btn-success:hover {
    background: rgba(16, 185, 129, 0.35) !important;
    color: #ffffff !important;
}

/* Tier 5: Danger Action (Red) */
.btn-danger-red,
.btn-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
}
.btn-danger-red:hover,
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.35) !important;
    color: #ffffff !important;
}

.btn-sm {
    padding: 5px 12px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
}

/* Required Form Asterisk */
.required-asterisk,
.text-gold {
    color: var(--dark-yellow) !important;
    font-weight: 800;
}

/* Executive KPI 4-Card Grid */
.erp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}

@media (max-width: 900px) {
    .erp-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .erp-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    background: rgba(10, 21, 48, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.kpi-card-title {
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.kpi-card-value {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
}

/* Empty State Card */
.empty-state-card {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-secondary);
}
.empty-state-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    display: block;
}
.empty-state-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}
.empty-state-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    max-width: 320px;
    margin: 0 auto 12px auto;
}

/* Skeleton Loading Shimmer */
.skeleton-row {
    height: 18px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 6px 0;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tables */
.table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box !important;
    margin-top: 10px;
}

table {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: left;
    font-size: 0.8rem !important;
}

th {
    background: rgba(4, 9, 24, 0.95) !important;
    color: var(--dark-yellow) !important;
    font-weight: 800 !important;
    padding: 8px 12px !important;
    text-transform: uppercase;
    font-size: 0.72rem !important;
    letter-spacing: 0.03em;
    white-space: nowrap !important;
}

td {
    padding: 8px 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: var(--text-primary) !important;
    font-size: 0.8rem !important;
}

/* Attendance Radio Options */
.attendance-options {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 800;
    font-size: 0.85rem;
}

.radio-label input { display: none; }

.radio-label:has(input[value="P"]:checked) {
    background: #10b981;
    border-color: #34d399;
    color: white;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.radio-label:has(input[value="A"]:checked) {
    background: #ef4444;
    border-color: #f87171;
    color: white;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.radio-label:has(input[value="L"]:checked) {
    background: #fbbf24;
    border-color: #fde047;
    color: #050b1a;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Universal Footer */
.footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.82rem;
    background: rgba(5, 11, 26, 0.95);
}

/* Print Media Styles for PDF / Paper Printing */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .floating-header-wrap, .footer, .no-print, .nav-tabs, .btn, #admin-pwa-install, #teacher-pwa-install {
        display: none !important;
    }
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .modal-overlay {
        position: static !important;
        background: transparent !important;
        opacity: 1 !important;
        pointer-events: all !important;
    }
    .glass-panel {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    th {
        background: #f1f5f9 !important;
        color: #000000 !important;
    }
    td {
        border-bottom: 1px solid #e2e8f0 !important;
        color: #000000 !important;
    }
}

/* Modal Overlay & Responsive Flexible Popups */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 11, 26, 0.92);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 100% !important;
    max-width: 480px !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    margin: auto !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85) !important;
    -webkit-overflow-scrolling: touch !important;
}

#report-modal .modal-content {
    max-width: 780px !important;
}

.summary-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    text-align: center !important;
    width: 100% !important;
}
@media (max-width: 540px) {
    .summary-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
}

/* Helper Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.2rem; }
.mb-4 { margin-bottom: 1.2rem; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }

/* Alert Messages */
.alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 10px;
}
.alert-info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}
.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Mobile Responsive Card Layout & Full-Text Attendance Pill Buttons */
.student-card-grid {
    display: grid !important;
    grid-template-columns: 1fr 135px !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
}

.card-left-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
}

.card-name-title {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.card-roll-badge {
    background: rgba(251, 191, 36, 0.25) !important;
    color: var(--dark-yellow) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    padding: 1px 6px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
}

.card-name-text {
    font-size: 0.95rem !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
}

.card-father-name {
    font-size: 0.76rem !important;
    color: var(--text-secondary) !important;
}

.card-phone-num {
    font-size: 0.76rem !important;
    color: var(--dark-yellow) !important;
    font-weight: 700 !important;
}

.card-bottom-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 4px !important;
    flex-wrap: wrap !important;
}

.card-right-attendance {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
}

.full-att-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
}

.full-att-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    font-weight: 900 !important;
    font-size: 0.88rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none !important;
    padding: 0 !important;
}

.full-att-btn:hover {
    transform: scale(1.1) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.full-att-btn input {
    display: none !important;
}

.full-att-btn.att-present:has(input:checked) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6) !important;
    transform: scale(1.06) !important;
}

.full-att-btn.att-absent:has(input:checked) {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #f87171 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6) !important;
    transform: scale(1.06) !important;
}

.full-att-btn.att-leave:has(input:checked) {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
    border-color: #fde047 !important;
    color: #050b1a !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6) !important;
    transform: scale(1.06) !important;
}

/* PC / Desktop View Table Formatting */
@media screen and (min-width: 769px) {
    table#students-table {
        width: 100% !important;
        table-layout: auto !important;
        border-collapse: separate !important;
        border-spacing: 0 8px !important;
    }
    table#students-table th {
        background: rgba(5, 11, 26, 0.9) !important;
        color: var(--dark-yellow) !important;
        font-weight: 800 !important;
        font-size: 0.82rem !important;
        text-transform: uppercase !important;
        padding: 10px 14px !important;
    }
    table#students-table td {
        background: rgba(10, 20, 48, 0.75) !important;
        border-top: 1px solid var(--glass-border) !important;
        border-bottom: 1px solid var(--glass-border) !important;
        padding: 10px 14px !important;
        vertical-align: middle !important;
    }
    table#students-table td:first-child {
        border-left: 1px solid var(--glass-border) !important;
        border-top-left-radius: 10px !important;
        border-bottom-left-radius: 10px !important;
    }
    table#students-table td:last-child {
        border-right: 1px solid var(--glass-border) !important;
        border-top-right-radius: 10px !important;
        border-bottom-right-radius: 10px !important;
    }
    .full-att-group-horizontal {
        display: flex !important;
        gap: 8px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .full-att-group-horizontal .full-att-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 50% !important;
    }
    .mobile-only-actions {
        display: none !important;
    }
}

/* Clean Rectangular Export Format Buttons (No Circles, Perfect Alignment) */
.export-format-btn {
    width: 100% !important;
    min-width: unset !important;
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
}

.export-format-btn input[type="radio"] {
    display: inline-block !important;
    margin: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.export-format-btn span {
    font-weight: 800 !important;
    font-size: 0.86rem !important;
    color: #ffffff !important;
    white-space: nowrap !important;
}

/* FORCE MOBILE CARD TRANSFORM FOR ALL TABLES (TEACHER & ADMIN) */
@media screen and (max-width: 768px) {
    .container {
        padding: 6px 4px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .floating-header-wrap {
        padding: 4px 4px 0 4px !important;
    }
    .navbar {
        padding: 8px 10px !important;
        border-radius: 10px !important;
    }
    .glass-panel {
        padding: 10px 8px !important;
        border-radius: 12px !important;
    }

    /* RESPONSIVE FLEXIBLE POPUP MODALS */
    .modal-overlay {
        padding: 10px !important;
    }
    .modal-content {
        max-width: 96vw !important;
        max-height: 88vh !important;
        padding: 14px 10px !important;
        border-radius: 14px !important;
    }
    #popup-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
    #popup-actions button {
        width: 100% !important;
        height: 40px !important;
        font-size: 0.88rem !important;
    }

    .pc-only-col {
        display: none !important;
    }
    .mobile-only-actions {
        display: flex !important;
    }
    .full-att-group-horizontal {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 6px auto !important;
    }
    .full-att-group-horizontal .full-att-btn {
        width: 100% !important;
        height: 38px !important;
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        padding: 0 4px !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
    }

    .student-actions-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 6px auto 0 auto !important;
    }
    .student-actions-grid .btn {
        width: 100% !important;
        height: 30px !important;
        font-size: 0.74rem !important;
        padding: 2px 4px !important;
    }

    .table-responsive {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        margin-top: 4px !important;
    }
    .table-responsive table,
    table#students-table,
    table#classes-summary-table,
    table#enrolled-students-table,
    table#teachers-table,
    table#config-teachers-table,
    table#audit-logs-table,
    table#recycle-bin-table,
    table#recycle-tab-table,
    table#absentees-table,
    table#parent-modal-records-table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .table-responsive table thead,
    table#students-table thead,
    table#classes-summary-table thead,
    table#enrolled-students-table thead,
    table#teachers-table thead,
    table#config-teachers-table thead,
    table#audit-logs-table thead,
    table#recycle-bin-table thead,
    table#recycle-tab-table thead,
    table#absentees-table thead,
    table#parent-modal-records-table thead {
        display: none !important;
    }
    .table-responsive table tbody,
    table#students-table tbody,
    table#classes-summary-table tbody,
    table#enrolled-students-table tbody,
    table#teachers-table tbody,
    table#config-teachers-table tbody,
    table#audit-logs-table tbody,
    table#recycle-bin-table tbody,
    table#recycle-tab-table tbody,
    table#absentees-table tbody,
    table#parent-modal-records-table tbody {
        display: block !important;
        width: 100% !important;
    }
    .table-responsive table tr,
    table#students-table tr,
    table#classes-summary-table tr,
    table#enrolled-students-table tr,
    table#teachers-table tr,
    table#config-teachers-table tr,
    table#audit-logs-table tr,
    table#recycle-bin-table tr,
    table#recycle-tab-table tr,
    table#absentees-table tr,
    table#parent-modal-records-table tr {
        display: block !important;
        width: 100% !important;
        background: rgba(10, 20, 48, 0.85) !important;
        border: 1px solid var(--glass-border-gold) !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
        padding: 10px 12px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
        box-sizing: border-box !important;
        content-visibility: auto;
        contain-intrinsic-size: 110px;
    }
    .table-responsive table td,
    table#students-table td,
    table#classes-summary-table td,
    table#enrolled-students-table td,
    table#teachers-table td,
    table#config-teachers-table td,
    table#audit-logs-table td,
    table#recycle-bin-table td,
    table#recycle-tab-table td,
    table#absentees-table td,
    table#parent-modal-records-table td {
        display: block !important;
        width: 100% !important;
        padding: 3px 0 !important;
        border: none !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Strict Mobile Hiding for PC-Only Table Columns */
    table#enrolled-students-table td.pc-only-col,
    table#enrolled-students-table th.pc-only-col,
    table#students-table td.pc-only-col,
    table#students-table th.pc-only-col,
    table.table td.pc-only-col,
    table.table th.pc-only-col,
    table td.pc-only-col,
    table th.pc-only-col,
    .pc-only-col {
        display: none !important;
    }
}

/* Centered Attendance Footer Actions */
.attendance-footer-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 14px auto 0 auto !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .attendance-footer-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .attendance-footer-actions .btn,
    .attendance-footer-actions .export-dropdown-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Dual Export Dropdown */
.export-dropdown-wrap {
    position: relative !important;
    display: inline-block !important;
}

.export-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 13, 32, 0.98);
    border: 1px solid var(--dark-yellow);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(251, 191, 36, 0.2);
    z-index: 9999;
    min-width: 170px;
    backdrop-filter: blur(16px);
}

.export-dropdown-wrap.active .export-menu {
    display: block !important;
    animation: fadeIn 0.2s ease-out;
}

.export-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 12px !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    text-align: left !important;
}

.export-menu-item:hover {
    background: rgba(251, 191, 36, 0.15) !important;
    color: var(--dark-yellow) !important;
}

/* Action Table Buttons & Grid */
.student-actions-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 170px !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
}

.student-actions-grid .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 3px 6px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    height: 26px !important;
    line-height: 1 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.btn-action-report {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
}
.btn-action-report:hover {
    background: rgba(16, 185, 129, 0.35) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.btn-action-edit {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}
.btn-action-edit:hover {
    background: rgba(59, 130, 246, 0.38) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.btn-action-shift {
    background: rgba(251, 191, 36, 0.18) !important;
    color: var(--dark-yellow) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
}
.btn-action-shift:hover {
    background: rgba(251, 191, 36, 0.38) !important;
    color: #050b1a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3) !important;
}

.btn-action-trash {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}
.btn-action-trash:hover {
    background: rgba(239, 68, 68, 0.35) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

/* Clear Filter Button */
.btn-clear-filter {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    font-weight: 800 !important;
}
.btn-clear-filter:hover {
    background: rgba(239, 68, 68, 0.3) !important;
}

/* Universal Brand Logo - 100% Borderless Circular */
.brand-logo {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Responsive Mobile Navigation Tabs & Buttons */
@media (max-width: 768px) {
    .nav-tabs {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding: 4px !important;
        gap: 4px !important;
    }
    .nav-tabs button {
        flex: 0 0 auto !important;
        padding: 0 10px !important;
        height: 32px !important;
        font-size: 0.74rem !important;
        border-radius: 6px !important;
    }
    .btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    .btn-sm {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }
}

/* Extra Mobile Viewport Tweaks (320px to 480px) */
@media (max-width: 480px) {
    .full-att-group-horizontal .full-att-btn {
        height: 32px !important;
        font-size: 0.72rem !important;
        padding: 0 2px !important;
    }
    .student-actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 100% !important;
    }
    .student-actions-grid .btn {
        font-size: 0.7rem !important;
        height: 28px !important;
        padding: 2px 4px !important;
    }
    #active-date-picker {
        width: 135px !important;
        font-size: 0.8rem !important;
    }
}

/* Universal Center Auto-Dismiss Toast Notification System */
.auto-toast-container {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    pointer-events: none !important;
    max-width: 92vw !important;
    width: 460px !important;
}

.auto-toast {
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px 18px !important;
    border-radius: 12px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 15px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: toastSlideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.auto-toast.toast-success {
    background: rgba(6, 78, 59, 0.94) !important;
    border-color: rgba(52, 211, 153, 0.5) !important;
    color: #ecfdf5 !important;
}

.auto-toast.toast-error {
    background: rgba(127, 29, 29, 0.94) !important;
    border-color: rgba(248, 113, 113, 0.5) !important;
    color: #fef2f2 !important;
}

.auto-toast.toast-info {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
    color: #f8fafc !important;
}

.auto-toast-action-btn {
    background: #fbbf24 !important;
    color: #050b1a !important;
    font-weight: 900 !important;
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
}
.auto-toast-action-btn:hover {
    background: #fde047 !important;
    transform: scale(1.04) !important;
}

.auto-toast.toast-fade-out {
    opacity: 0 !important;
    transform: translateY(-16px) scale(0.95) !important;
}

@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Circular Stat Cards for Student Profile / Report Modal */
.stat-circles-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    align-items: stretch !important;
    margin-bottom: 14px !important;
}

.stat-circle-card {
    background: rgba(10, 20, 48, 0.75) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 14px !important;
    padding: 12px 6px 10px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    height: 100% !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.stat-circle-card:hover {
    transform: translateY(-2px) !important;
}

.stat-circle-ring {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 8px auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.stat-circle-val {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.stat-circle-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: var(--text-secondary) !important;
    line-height: 1.25 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 28px !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Present: Emerald Green Circle */
.stat-circle-present .stat-circle-ring {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(6, 78, 59, 0.5) 100%) !important;
    border: 2px solid #34d399 !important;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.35) !important;
}
.stat-circle-present .stat-circle-val {
    color: #34d399 !important;
}

/* Absent: Crimson Red Circle */
.stat-circle-absent .stat-circle-ring {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(127, 29, 29, 0.5) 100%) !important;
    border: 2px solid #f87171 !important;
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.35) !important;
}
.stat-circle-absent .stat-circle-val {
    color: #f87171 !important;
}

/* Leave: Golden Amber Circle */
.stat-circle-leave .stat-circle-ring {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, rgba(180, 83, 9, 0.5) 100%) !important;
    border: 2px solid #fbbf24 !important;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.35) !important;
}
.stat-circle-leave .stat-circle-val {
    color: #fbbf24 !important;
}

/* Percentage: Sky Blue Circle */
.stat-circle-pct .stat-circle-ring {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(30, 58, 138, 0.5) 100%) !important;
    border: 2px solid #60a5fa !important;
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.35) !important;
}
.stat-circle-pct .stat-circle-val {
    color: #60a5fa !important;
    font-size: 0.95rem !important;
}

@media (max-width: 480px) {
    .stat-circles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .stat-circle-ring {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }
    .stat-circle-val {
        font-size: 1.05rem !important;
    }
}

/* Teacher Marking Header & Strength Circle Badge */
.teacher-marking-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding-bottom: 14px !important;
    margin-bottom: 0 !important;
}

.teacher-marking-title-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.marking-active-sub {
    font-size: 0.78rem !important;
    color: var(--dark-yellow) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.marking-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.marking-active-class {
    color: white !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.strength-circle-badge {
    background: var(--dark-blue-gradient) !important;
    color: white !important;
    padding: 3px 12px !important;
    border-radius: 20px !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.teacher-marking-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.teacher-subtabs-wrap {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 14px 0 !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid var(--glass-border) !important;
    flex-wrap: wrap !important;
}

.teacher-subtabs-wrap .subtab-btn,
.subtab-btn {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    margin: 0 !important;
    transform: none !important;
}

.teacher-subtabs-wrap .subtab-btn:hover {
    transform: none !important;
}

/* Parent Modal Responsive Date Row */
.parent-modal-date-row {
    display: flex !important;
    gap: 8px !important;
    align-items: flex-end !important;
    flex-wrap: wrap !important;
}
.parent-modal-date-field {
    flex: 1 1 120px !important;
    min-width: 110px !important;
}
.parent-modal-btn-field {
    flex: 0 0 auto !important;
    min-width: 70px !important;
}

@media (max-width: 640px) {
    .teacher-marking-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }
    .teacher-marking-title-box {
        align-items: center !important;
        text-align: center !important;
    }
    .marking-title-row {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    .teacher-marking-actions {
        width: 100% !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    .teacher-marking-actions .btn {
        flex: 1 !important;
        max-width: 160px !important;
    }
    .teacher-subtabs-wrap {
        justify-content: center !important;
        gap: 6px !important;
    }
    .teacher-subtabs-wrap .subtab-btn {
        flex: 1 1 auto !important;
        text-align: center !important;
        padding: 8px 10px !important;
        font-size: 0.78rem !important;
    }
}

@media (max-width: 480px) {
    .parent-modal-date-field {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 0 !important;
    }
    .parent-modal-btn-field {
        flex: 1 1 100% !important;
        margin-top: 4px !important;
    }
}

.range-preset-select,
#parent-modal-range-preset {
    max-width: 140px !important;
    width: 140px !important;
    height: 30px !important;
    padding: 2px 8px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    background: #0b1533 !important;
    color: #ffffff !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.range-preset-select option,
#parent-modal-range-preset option {
    background: #0b1533 !important;
    color: #ffffff !important;
    font-size: 0.76rem !important;
    padding: 4px 6px !important;
    font-weight: 600 !important;
}

/* Unified Attendance Control Panel */
.teacher-unified-panel {
    background: rgba(10, 21, 48, 0.78) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 10px 12px !important;
    margin: 0 0 6px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.t-panel-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.t-date-picker-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.t-date-label {
    color: var(--dark-yellow) !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.t-date-input {
    width: 145px !important;
    height: 34px !important;
    padding: 2px 8px !important;
    font-size: 0.84rem !important;
    background: rgba(5, 11, 26, 0.95) !important;
    color: #ffffff !important;
    border: 1px solid var(--dark-yellow) !important;
    border-radius: 6px !important;
    margin: 0 !important;
}

.t-date-apply-btn {
    height: 34px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

.t-date-status-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.t-badge-date {
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    background: rgba(59, 130, 246, 0.2) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    padding: 5px 10px !important;
    border-radius: 7px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.t-badge-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    padding: 5px 10px !important;
    border-radius: 7px !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.t-badge-status.status-recorded {
    background: rgba(16, 185, 129, 0.22) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
}

.t-badge-status.status-pending {
    background: rgba(251, 191, 36, 0.18) !important;
    color: #fde047 !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

.t-badge-status.status-locked {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.t-panel-bottom-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.t-batch-actions-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.t-batch-btn {
    height: 34px !important;
    padding: 0 14px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 7px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.t-batch-btn:hover {
    transform: translateY(-1px) !important;
}

.t-submit-btn {
    font-weight: 800 !important;
    padding: 0 18px !important;
}

.t-search-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 1 260px !important;
    max-width: 440px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.t-search-input {
    flex: 1 1 auto !important;
    height: 34px !important;
    font-size: 0.82rem !important;
    background: rgba(5, 11, 26, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 7px !important;
    padding: 0 12px !important;
    margin: 0 !important;
}

.t-search-input:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3) !important;
}

.t-search-clear {
    flex: 0 0 auto !important;
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 7px !important;
    margin: 0 !important;
}

/* Mobile Layout - Clean, Centered, Tight and Structured */
@media (max-width: 768px) {
    .teacher-unified-panel {
        padding: 8px 8px !important;
        gap: 6px !important;
        margin: 0 0 4px 0 !important;
        border-radius: 12px !important;
    }
    .t-panel-top-row {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .t-date-picker-wrap {
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        gap: 6px !important;
    }
    .t-date-status-wrap {
        justify-content: center !important;
        width: 100% !important;
        gap: 6px !important;
        margin: 0 auto !important;
    }
    .t-badge-date,
    .t-badge-status {
        width: 100% !important;
        max-width: 340px !important;
        text-align: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }
    .t-panel-bottom-row {
        flex-direction: column !important;
        width: 100% !important;
        gap: 6px !important;
        margin: 0 !important;
    }
    .t-batch-actions-row {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .t-batch-btn {
        width: 100% !important;
        height: 34px !important;
        font-size: 0.8rem !important;
        padding: 0 2px !important;
        text-align: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    .t-search-row {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 6px !important;
    }
    .t-search-input {
        flex: 1 !important;
        height: 34px !important;
        margin: 0 !important;
    }
    .t-search-clear {
        height: 34px !important;
        padding: 0 12px !important;
        margin: 0 !important;
    }
    .table-responsive {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Universal Red Modal Close Button (Slightly Larger & Vibrant) */
.btn-modal-close-red {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1 !important;
    outline: none !important;
}

.btn-modal-close-red:hover {
    background: linear-gradient(135deg, #f87171 0%, #b91c1c 100%) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6) !important;
    color: #ffffff !important;
}

.btn-modal-close-red:active {
    transform: scale(0.95) !important;
}

/* ==========================================================================
   Admin Daily Attendance Summaries - Modern Responsive UI & Cards
   ========================================================================== */
.admin-summary-header-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding-bottom: 10px !important;
    flex-wrap: wrap !important;
}

.admin-summary-title {
    color: var(--dark-yellow) !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    letter-spacing: 0.02em !important;
}

.admin-summary-filters-grid {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

.admin-summary-date-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(5, 11, 26, 0.9) !important;
    padding: 2px 8px !important;
    border-radius: 8px !important;
    border: 1px solid var(--glass-border) !important;
    height: 32px !important;
    box-sizing: border-box !important;
}

.admin-summary-date-label {
    font-size: 0.76rem !important;
    color: var(--dark-yellow) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.admin-summary-date-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 0.76rem !important;
    padding: 0 !important;
    cursor: pointer !important;
    height: 26px !important;
}

.admin-summary-select {
    width: 120px !important;
    max-width: 120px !important;
    height: 32px !important;
    font-size: 0.76rem !important;
    padding: 2px 8px !important;
    background: rgba(5, 11, 26, 0.9) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
}

.admin-summary-reset-btn {
    height: 32px !important;
    padding: 2px 10px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
}

/* Summary Table Badges & Card Styles */
.summary-campus-badge {
    font-weight: 800 !important;
    font-size: 0.74rem !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    letter-spacing: 0.02em !important;
}

.summary-sec-badge {
    color: var(--dark-yellow) !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    background: rgba(251, 191, 36, 0.12) !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}

.summary-pct-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
}

.summary-view-btn {
    padding: 4px 10px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
}

/* Mobile Alignment & Card Transformation */
@media (max-width: 768px) {
    .admin-summary-header-wrap {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
        padding-bottom: 12px !important;
    }

    .admin-summary-title {
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
        font-size: 1.1rem !important;
    }

    .admin-summary-filters-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
        max-width: 360px !important;
        gap: 8px !important;
        margin: 0 auto !important;
        justify-items: center !important;
    }

    .admin-summary-date-box,
    .admin-summary-select,
    .admin-summary-reset-btn {
        width: 100% !important;
        max-width: 100% !important;
        height: 34px !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
    }

    .admin-summary-date-box {
        justify-content: center !important;
    }

    /* Mobile Summary Row Card Structure */
    table#classes-summary-table tr.summary-row-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px 14px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
        background: rgba(8, 16, 38, 0.92) !important;
        border: 1px solid rgba(251, 191, 36, 0.25) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
    }

    table#classes-summary-table tr.summary-row-card td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 !important;
        border: none !important;
        width: 100% !important;
    }

    table#classes-summary-table tr.summary-row-card .td-summary-campus {
        order: 1 !important;
    }

    table#classes-summary-table tr.summary-row-card .td-summary-class {
        order: 2 !important;
    }

    table#classes-summary-table tr.summary-row-card .td-summary-sec {
        order: 3 !important;
    }

    table#classes-summary-table tr.summary-row-card .td-summary-pct {
        order: 4 !important;
    }

    table#classes-summary-table tr.summary-row-card .td-summary-action {
        order: 5 !important;
        margin-top: 4px !important;
        padding-top: 6px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    table#classes-summary-table tr.summary-row-card .summary-view-btn {
        width: 100% !important;
        height: 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
    }
}

/* ==========================================================================
   Enrolled Teachers Directory - Centered Header & Enhanced Cards
   ========================================================================== */
.teacher-subtabs-centered-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 auto 16px auto !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding-bottom: 12px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    text-align: center !important;
}

.teachers-directory-header-wrap {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding-bottom: 14px !important;
}

.teachers-directory-title {
    color: var(--dark-yellow) !important;
    font-size: 1.18rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    letter-spacing: 0.02em !important;
}

.teachers-faculty-counters-group {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.faculty-counter-badge {
    padding: 6px 14px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}

.faculty-counter-total {
    background: rgba(10, 21, 48, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.faculty-counter-boys {
    background: rgba(30, 58, 138, 0.25) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.faculty-counter-girls {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

.faculty-counter-label {
    font-size: 0.76rem !important;
    color: var(--text-secondary) !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
}

.faculty-counter-num {
    font-weight: 900 !important;
    font-size: 0.92rem !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
}

.num-total {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}

.num-boys {
    background: rgba(59, 130, 246, 0.25) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

.num-girls {
    background: rgba(245, 158, 11, 0.25) !important;
    color: var(--dark-yellow) !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
}

/* Teacher Directory Table & Card Typography */
.teacher-card-name {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

.teacher-campus-badge {
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    letter-spacing: 0.02em !important;
}

.teacher-class-text {
    font-size: 0.88rem !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
}

.teacher-sec-badge {
    color: var(--dark-yellow) !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    background: rgba(251, 191, 36, 0.12) !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}

.teacher-pin-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    padding: 3px 10px !important;
    border-radius: 8px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.teacher-card-actions-wrap {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Mobile Alignment & Card Transformation for Teachers Directory */
@media (max-width: 768px) {
    .teacher-subtabs-centered-wrap {
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .teacher-subtabs-centered-wrap button {
        flex: 1 1 auto !important;
        max-width: 180px !important;
        text-align: center !important;
    }

    .teachers-directory-header-wrap {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .teachers-directory-title {
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
        font-size: 1.15rem !important;
    }

    .teachers-faculty-counters-group {
        justify-content: center !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .faculty-counter-badge {
        padding: 4px 10px !important;
        font-size: 0.74rem !important;
    }

    /* Mobile Teacher Directory Card */
    table#teachers-table tr.teacher-directory-card-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 14px 16px !important;
        margin-bottom: 12px !important;
        border-radius: 14px !important;
        background: rgba(8, 16, 38, 0.92) !important;
        border: 1px solid rgba(251, 191, 36, 0.25) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
    }

    table#teachers-table tr.teacher-directory-card-row td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 !important;
        border: none !important;
        width: 100% !important;
    }

    table#teachers-table tr.teacher-directory-card-row .td-teacher-name {
        order: 1 !important;
    }

    table#teachers-table tr.teacher-directory-card-row .td-teacher-campus {
        order: 2 !important;
    }

    table#teachers-table tr.teacher-directory-card-row .td-teacher-class {
        order: 3 !important;
    }

    table#teachers-table tr.teacher-directory-card-row .td-teacher-sec {
        order: 4 !important;
    }

    table#teachers-table tr.teacher-directory-card-row .td-teacher-pin {
        order: 5 !important;
    }

    table#teachers-table tr.teacher-directory-card-row .td-teacher-actions {
        order: 6 !important;
        margin-top: 6px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        justify-content: flex-end !important;
    }

    table#teachers-table tr.teacher-directory-card-row .teacher-card-actions-wrap {
        width: 100% !important;
        justify-content: flex-end !important;
        gap: 10px !important;
    }

    table#teachers-table tr.teacher-directory-card-row .teacher-card-actions-wrap .btn {
        flex: 1 !important;
        max-width: 140px !important;
        height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
    }
}

/* ==========================================================================
   Students Tab - Responsive Navigation & Centered Section Openers
   ========================================================================== */
.students-nav-header-wrap {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding-bottom: 12px !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    width: 100% !important;
}

.students-subtabs-group {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.students-quick-openers-group {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.quick-opener-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 3px 6px !important;
    border-radius: 8px !important;
}

.opener-box-boys {
    background: rgba(30, 58, 138, 0.25) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.opener-box-girls {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

.quick-opener-select {
    width: auto !important;
    max-width: 175px !important;
    height: 32px !important;
    font-size: 0.78rem !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
}

.quick-opener-btn {
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
}

@media (max-width: 768px) {
    .students-nav-header-wrap {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 14px !important;
    }

    .students-subtabs-group {
        justify-content: center !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .students-subtabs-group button {
        flex: 1 1 calc(50% - 6px) !important;
        max-width: 170px !important;
        text-align: center !important;
        font-size: 0.78rem !important;
        height: 34px !important;
    }

    .students-quick-openers-group {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 360px !important;
        gap: 8px !important;
        margin: 0 auto !important;
    }

    .quick-opener-box {
        width: 100% !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        padding: 4px 6px !important;
    }

    .quick-opener-select {
        flex: 1 1 auto !important;
        max-width: none !important;
        width: 100% !important;
        height: 34px !important;
    }

    .quick-opener-btn {
        flex: 0 0 auto !important;
        height: 34px !important;
        padding: 0 14px !important;
    }
}

/* ==========================================================================
   Enrolled Students Directory - Typography & Mobile Card Styling
   ========================================================================== */
.enrolled-students-directory-title {
    color: var(--dark-yellow) !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin: 0 auto !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
}

.student-name-header-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.admin-student-name-bold {
    color: #38bdf8 !important;
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

.student-shifted-tag {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
}

.student-father-text {
    font-size: 0.88rem !important;
    color: #cbd5e1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

.student-phone-pill {
    color: var(--dark-yellow) !important;
    font-weight: 800 !important;
    font-size: 0.94rem !important;
    letter-spacing: 0.03em !important;
}

.student-academic-pill {
    font-size: 0.88rem !important;
    color: #e2e8f0 !important;
    font-weight: 700 !important;
}

.student-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
}

.student-actions-grid .btn {
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 0 8px !important;
}

@media (max-width: 768px) {
    .enrolled-students-directory-title {
        text-align: center !important;
        font-size: 1.25rem !important;
        width: 100% !important;
        justify-content: center !important;
    }

    table#enrolled-students-table tr.enrolled-student-card-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
        border-radius: 14px !important;
        background: rgba(8, 16, 38, 0.92) !important;
        border: 1px solid rgba(251, 191, 36, 0.25) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
    }

    table#enrolled-students-table tr.enrolled-student-card-row td {
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        border: none !important;
        width: 100% !important;
    }

    .admin-student-name-bold {
        font-size: 1.15rem !important;
        font-weight: 900 !important;
        color: #38bdf8 !important;
    }

    .student-father-text {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #cbd5e1 !important;
    }

    .student-phone-pill {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: var(--dark-yellow) !important;
    }

    .student-academic-pill {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
    }

    table#enrolled-students-table tr.enrolled-student-card-row .td-student-actions {
        margin-top: 6px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   Imports Tab - Mobile Centering & Polish
   ========================================================================== */
.imports-title {
    color: var(--dark-yellow) !important;
    font-weight: 800 !important;
}

.deletion-title {
    color: #f87171 !important;
    font-weight: 800 !important;
}

@media (max-width: 768px) {
    .imports-header-wrap {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .imports-title-block {
        text-align: center !important;
    }

    .imports-title, .imports-subtitle {
        text-align: center !important;
        width: 100% !important;
    }

    .imports-mode-toggle-wrap {
        justify-content: center !important;
        width: 100% !important;
    }

    .imports-mode-toggle-wrap button {
        flex: 1 1 calc(50% - 6px) !important;
        max-width: 180px !important;
        text-align: center !important;
    }

    .imports-file-label {
        text-align: center !important;
    }

    .btn-import-submit {
        margin: 0 auto !important;
        display: block !important;
    }

    .deletion-header-wrap {
        text-align: center !important;
    }

    .deletion-title, .deletion-subtitle {
        text-align: center !important;
        width: 100% !important;
    }

    .deletion-target-label {
        text-align: center !important;
    }

    .btn-delete-section-submit {
        margin: 0 auto !important;
        display: block !important;
    }

    .deletion-reset-btn-wrap {
        text-align: center !important;
    }

    .btn-clear-all-db {
        margin: 0 auto !important;
        display: inline-block !important;
    }
}

/* ==========================================================================
   Holidays / Calendar Tab - Mobile Centering & Card Styling
   ========================================================================== */
.holidays-main-title {
    color: var(--dark-yellow) !important;
    font-weight: 800 !important;
}

.holiday-date-text {
    color: var(--dark-yellow) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
}

.holiday-day-badge {
    color: #60a5fa !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
}

.holiday-reason-text {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.92rem !important;
}

@media (max-width: 768px) {
    .holidays-main-header-wrap {
        text-align: center !important;
        width: 100% !important;
    }

    .holidays-main-title {
        text-align: center !important;
        font-size: 1.2rem !important;
        width: 100% !important;
    }

    .holiday-date-label, .holiday-reason-label {
        text-align: center !important;
        display: block !important;
    }

    .holiday-save-btn-wrap {
        text-align: center !important;
        width: 100% !important;
    }

    .btn-save-holiday {
        margin: 0 auto !important;
        display: block !important;
        min-width: 160px !important;
    }

    .holidays-list-header-wrap {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .holidays-list-title-block {
        text-align: center !important;
    }

    .holidays-list-title {
        justify-content: center !important;
        text-align: center !important;
        font-size: 1rem !important;
    }

    .holidays-list-subtitle {
        text-align: center !important;
    }

    .btn-refresh-holidays-action {
        margin: 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Mobile Holiday Cards */
    table#holidays-table tr.holiday-card-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        padding: 14px 16px !important;
        margin-bottom: 12px !important;
        border-radius: 14px !important;
        background: rgba(8, 16, 38, 0.92) !important;
        border: 1px solid rgba(251, 191, 36, 0.25) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
        position: relative !important;
    }

    table#holidays-table tr.holiday-card-row td {
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        border: none !important;
        width: 100% !important;
    }

    table#holidays-table tr.holiday-card-row .td-holiday-idx {
        position: absolute !important;
        top: 10px !important;
        right: 14px !important;
        width: auto !important;
    }

    .holiday-idx-badge {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-secondary) !important;
        padding: 2px 8px !important;
        border-radius: 6px !important;
        font-size: 0.8rem !important;
        font-weight: 800 !important;
    }

    .holiday-date-text {
        font-size: 1.05rem !important;
        font-weight: 900 !important;
        color: var(--dark-yellow) !important;
    }

    .holiday-day-badge {
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        color: #60a5fa !important;
    }

    .holiday-reason-text {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #f8fafc !important;
        line-height: 1.4 !important;
    }

    table#holidays-table tr.holiday-card-row .td-holiday-action {
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        justify-content: center !important;
    }

    table#holidays-table tr.holiday-card-row .td-holiday-action .btn {
        width: 100% !important;
        max-width: 160px !important;
        height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ==========================================================================
   Recycle Bin / Trash Tab - Mobile Centering & Card Styling
   ========================================================================== */
.trash-main-title {
    color: #f87171 !important;
    font-weight: 900 !important;
}

.trash-name-text {
    color: #38bdf8 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

.trash-father-text {
    font-size: 0.85rem !important;
    color: #cbd5e1 !important;
    font-weight: 700 !important;
}

.trash-phone-text {
    color: var(--dark-yellow) !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
}

.trash-sec-pill {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
}

.trash-time-badge {
    font-size: 0.76rem !important;
    color: var(--text-secondary) !important;
}

.trash-card-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 768px) {
    .trash-tab-header-wrap {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .trash-title-block {
        text-align: center !important;
    }

    .trash-main-title {
        justify-content: center !important;
        text-align: center !important;
        font-size: 1.2rem !important;
        width: 100% !important;
    }

    .trash-subtitle {
        text-align: center !important;
    }

    .trash-top-actions {
        justify-content: center !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .trash-top-actions button {
        flex: 1 1 calc(50% - 6px) !important;
        max-width: 160px !important;
        text-align: center !important;
        height: 36px !important;
    }

    .trash-mode-switcher-wrap {
        justify-content: center !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .trash-mode-switcher-wrap button {
        flex: 1 1 calc(50% - 6px) !important;
        max-width: 180px !important;
        text-align: center !important;
        height: 36px !important;
        font-size: 0.8rem !important;
    }

    .trash-filters-wrap {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .trash-filters-wrap input,
    .trash-filters-wrap select,
    .trash-filters-wrap button {
        width: 100% !important;
        max-width: 360px !important;
        height: 36px !important;
    }

    /* Mobile Trash Cards for Students & Teachers */
    table#recycle-tab-table tr.trash-student-card-row,
    table#recycle-teachers-table tr.trash-teacher-card-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        padding: 14px 16px !important;
        margin-bottom: 12px !important;
        border-radius: 14px !important;
        background: rgba(8, 16, 38, 0.92) !important;
        border: 1px solid rgba(239, 68, 68, 0.35) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
    }

    table#recycle-tab-table tr.trash-student-card-row td,
    table#recycle-teachers-table tr.trash-teacher-card-row td {
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        border: none !important;
        width: 100% !important;
    }

    .trash-name-text {
        font-size: 1.12rem !important;
        font-weight: 900 !important;
        color: #38bdf8 !important;
    }

    .trash-father-text {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #cbd5e1 !important;
    }

    .trash-phone-text {
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        color: var(--dark-yellow) !important;
    }

    table#recycle-tab-table tr.trash-student-card-row .td-trash-actions,
    table#recycle-teachers-table tr.trash-teacher-card-row .td-trash-teacher-actions {
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        justify-content: center !important;
    }

    .trash-card-actions {
        width: 100% !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .trash-card-actions button {
        flex: 1 1 auto !important;
        max-width: 140px !important;
        height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 800 !important;
    }
}

/* ==========================================================================
   Teacher Portal - Floating Quick Scroll Widget
   ========================================================================== */
.quick-scroll-widget {
    display: none !important;
}

/* ==========================================================================
   PWA Install Badges & Interactive Buttons
   ========================================================================== */
.teacher-login-pwa-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    z-index: 10;
}

.pwa-install-pill {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.28) 100%) !important;
    color: #fde047 !important;
    border: 1px solid rgba(251, 191, 36, 0.45) !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 0.76rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.2) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none !important;
}

.pwa-install-pill:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(245, 158, 11, 0.45) 100%) !important;
    color: #ffffff !important;
    border-color: rgba(251, 191, 36, 0.8) !important;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4) !important;
    transform: translateY(-1px) scale(1.02);
}

.pwa-install-pill:active {
    transform: translateY(0) scale(0.98);
}

