/* ==========================================================================
   Sikkhalay Enterprise Digital School OS — Central Design System & CSS Rules
   ========================================================================== */

:root {
    /* Sikkhalay Enterprise Color Palette */
    --brand-primary: #059669;
    /* Emerald Primary */
    --brand-primary2: #f97316;
    /* Vibrant Orange Accent */
    --brand-primary-hover: #047857;
    --brand-light: #ecfdf5;
    --brand-accent: #10b981;

    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-elevated: #f1f5f9;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --status-success: #10b981;
    --status-success-bg: #dcfce7;
    --status-warning: #f59e0b;
    --status-warning-bg: #fef3c7;
    --status-danger: #ef4444;
    --status-danger-bg: #fee2e2;
    --status-info: #3b82f6;
    --status-info-bg: #dbeafe;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

    --sidebar-width: 260px;
    --header-height: 70px;
    --bottom-nav-height: 65px;
}

[data-theme="dark"] {
    --bg-body: #0b0f19;
    --bg-surface: #151e2e;
    --bg-elevated: #1e293b;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border-color: #273549;
    --border-light: #1e293b;

    --brand-light: rgba(5, 150, 105, 0.2);

    --status-success-bg: rgba(16, 185, 129, 0.18);
    --status-warning-bg: rgba(245, 158, 11, 0.18);
    --status-danger-bg: rgba(239, 68, 68, 0.18);
    --status-info-bg: rgba(59, 130, 246, 0.18);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    transition: background-color 0.25s ease, color 0.25s ease;
}

body,
.sidebar,
.header,
.panel,
.kpi-card,
.modal-card,
.table-card,
.settings-drawer,
.form-control {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* --- GLOBAL LAYOUT ARCHITECTURE --- */
#app {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR (Advanced Responsive Command Center) --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    z-index: 950;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease;
    box-shadow: 1px 0 0 var(--border-color);
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
    flex-shrink: 0;
}

.sidebar-brand-left {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.sidebar-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background-image: url('../assets/images/logo.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border: none !important;
    border-radius: var(--radius-full);
    box-shadow: none !important;
}

.sidebar-logo-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--bg-surface);
    box-shadow: none !important;
}

.sidebar-brand .brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-brand .brand-name {
    font-weight: 800;
    font-size: 15.5px;
    color: var(--text-main);
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.sidebar-brand .portal-tag {
    font-size: 10px;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-close-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

/* Sidebar Scrollable Container */
.sidebar-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.sidebar-scroll-container::-webkit-scrollbar {
    width: 5px;
}

.sidebar-scroll-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

/* Institution Mini Card */
.sidebar-inst-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0.35) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

[data-theme="dark"] .sidebar-inst-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.sidebar-inst-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.sidebar-inst-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-inst-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-inst-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.sidebar-inst-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

/* Sidebar Search Button */
.sidebar-search-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-search-btn:hover {
    border-color: var(--brand-primary);
    color: var(--text-main);
    background: var(--brand-light);
}

.sidebar-search-btn kbd {
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
}

/* Sidebar Menu Navigation Groups */
.sidebar-menu-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-group-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--text-muted);
    padding: 6px 10px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
}

.sidebar-group-title i {
    font-size: 10px;
    color: var(--brand-primary);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-item:hover {
    background-color: var(--bg-elevated);
    color: var(--text-main);
    transform: translateX(3px);
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-item:hover i {
    transform: scale(1.15);
    color: var(--brand-primary);
}

/* ACTIVE NAV ITEM: VIBRANT SUNSET RADIANT GRADIENT (SIDEBAR) */
.nav-item.active {
    background: linear-gradient(135deg, #ef9905 0%, #e9891d 45%, #f27f27 85%, #dc9326 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    transform: translateY(-1px) translateX(2px) !important;
}

.nav-item.active:hover {
    transform: translateY(-1px) translateX(4px) !important;
    color: #ffffff !important;
}

.nav-item.active i {
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)) !important;
    transform: scale(1.1) !important;
}

.nav-item.active span {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

.nav-item.active:has(.nav-badge)::after {
    display: none !important;
}

/* Nav Badges */
.nav-badge {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 10.5px;
    font-weight: 700;
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    display: none;
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.nav-badge-money {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: none;
}

.nav-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
    margin-left: auto;
}

/* --- SMART IN-SIDEBAR SETTINGS & PREFERENCES PANEL --- */
.sidebar-settings-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.sidebar-settings-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-settings-pill {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: var(--brand-light);
    color: var(--brand-primary);
    text-transform: uppercase;
}

/* Theme Switcher Pills inside Sidebar */
.sidebar-theme-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: var(--bg-surface);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.sidebar-theme-pill-btn {
    border: none;
    background: transparent;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hdr_back_btn {
    border: none;
    outline: none;
    background: none;
}

.hdr_back_btn i {
    font-size: 20px;
}

.sidebar-theme-pill-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 45%, #ef4444 85%, #dc2626 100%) !important;
}

.sidebar-theme-pill-btn:hover:not(.active) {
    color: var(--text-main);
    background: var(--bg-elevated);
}

/* Quick Action Tool Buttons inside Sidebar */
.sidebar-tool-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-tool-btn:hover {
    border-color: var(--brand-primary);
    background: var(--brand-light);
    color: var(--brand-primary);
    transform: translateY(-1px);
}

/* Pulse Highlight for Smart openSettingsMenu() Navigation */
@keyframes settingsPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6), inset 0 0 0 1px rgba(249, 115, 22, 0.8);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px 4px rgba(239, 68, 68, 0.5), inset 0 0 0 2px rgba(239, 68, 68, 0.9);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0), inset 0 0 0 1px transparent;
        transform: scale(1);
    }
}

.settings-pulse-highlight {
    animation: settingsPulseGlow 1.8s ease-in-out !important;
    border-color: #f97316 !important;
}

/* --- SIDEBAR FOOTER (User Identity & Fast Sign Out) --- */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar-admin-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: var(--radius-md);
}

.sidebar-admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-admin-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-admin-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.sidebar-admin-role {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-logout-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-logout-btn:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 940;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

body.sidebar-open-locked {
    overflow: hidden;
}

.workspace {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.3s ease;
}

/* --- GLOBAL TOP HEADER --- */
.header {
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile_header_left {
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    height: auto;
    border-bottom: none;
    padding: 0;
}

.mobile_header_left .logo-icon {
    width: 38px;
    height: 38px;
    background-image: url('../assets/images/logo.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border: none !important;
    border-radius: var(--radius-full);
    box-shadow: none !important;
    flex-shrink: 0;
}

.mobile_header_left .brand-text {
    display: flex;
    flex-direction: column;
}

.mobile_header_left .brand-name {
    font-weight: 800;
    font-size: 15.5px;
    color: var(--text-main);
    letter-spacing: -0.4px;
    line-height: 1.15;
}

.mobile_header_left .portal-tag {
    font-size: 10px;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.school-identity-header {
    display: flex;
    flex-direction: column;
}

.institution-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.institution-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- MODERN PREMIUM BORDERLESS HEADER ICON BUTTONS --- */
.header-icon-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--text-main);
    width: 38px;
    height: 38px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    transition: color 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-icon-btn i {
    font-size: 19px;
    transition: transform 0.22s ease, color 0.22s ease;
}

.header-icon-btn:hover {
    color: var(--brand-primary);
    transform: translateY(-2px) scale(1.15);
}

.header-icon-btn:active {
    transform: scale(0.92);
}

/* 1. RADIANT YELLOW & TOMATO GRADIENT FINANCE ICON */
.finance-icon-gradient,
.header-icon-btn i.fa-wallet,
.header-icon-btn .fa-wallet {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 45%, #ef4444 85%, #dc2626 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block !important;
}

/* 2. SHADOWLESS CLEAN NOTIFICATION BADGE DOT */
.header-badge-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: none !important;
    border: none !important;
}

/* 3. PROFILE BUTTON AVATAR & FALLBACK */
.header-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: none !important;
    box-shadow: none !important;
    display: block;
    transition: transform 0.22s ease;
}

.header-icon-btn:hover .header-profile-avatar {
    transform: scale(1.12);
}

.header-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.header-btn:hover {
    background: var(--border-color);
}

.theme-quick-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.theme-quick-toggle:hover {
    background: var(--brand-light);
    color: var(--brand-primary);
    transform: scale(1.05);
}

.theme-quick-toggle i {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.theme-quick-toggle:hover i {
    transform: rotate(20deg);
}

.search-trigger {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    width: 220px;
}

.kbd-shortcut {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
}

/* --- CONTENT CONTAINER --- */
.content-area {
    padding: 24px;
    flex: 1;
}

.page-view {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE BOTTOM NAVIGATION BAR --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    z-index: 900;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-nav-items {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 600;
    gap: 3px;
    flex: 1;
    height: 100%;
    cursor: pointer;
    position: relative;
    padding: 6px 2px;
    border-radius: var(--radius-md);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
    font-size: 15px;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s ease;
}

.mobile-nav-item span {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.1;
    transition: color 0.22s ease, font-weight 0.22s ease;
    white-space: nowrap;
    text-align: center;
}

.mobile-nav-item:hover {
    color: var(--brand-primary);
}

.mobile-nav-item:hover i {
    transform: translateY(-2px);
    color: var(--brand-primary);
}

.mobile-nav-item:hover span {
    color: var(--brand-primary);
}

/* ACTIVE MOBILE BOTTOM NAV BUTTON */
.mobile-nav-item.active {
    color: var(--brand-primary2) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.mobile-nav-item.active i {
    color: var(--brand-primary2) !important;
    transform: translateY(-2px) scale(1.15) !important;
    filter: drop-shadow(0 2px 6px rgba(5, 150, 105, 0.35)) !important;
}

.mobile-nav-item.active span {
    color: var(--brand-primary2) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* Elegant top active indicator bar */
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--brand-primary2);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.45);
}

.mobile-nav-item.active::after {
    display: none !important;
}

/* --- UI COMPONENTS --- */

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.kpi-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.kpi-footer {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.badge-live {
    background: var(--status-success-bg);
    color: var(--status-success);
}

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

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

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

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--status-success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Layout Panels */
.panel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    max-width: 96vw;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Data Tables */
.table-container {
    width: 100%;
    max-width: 80vw;
    overflow: hidden;
    overflow-x: auto;
}

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

.data-table th {
    background: var(--bg-elevated);
    padding: 12px 14px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    vertical-align: middle;
    font-size: 11px;
}

.data-table tr:hover {
    background-color: #f8fafc;
}

.user-avatar-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Timelines */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-primary);
}

.timeline-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-primary);
}

.timeline-content {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

/* --- ADMIN MODULES ARCHITECTURE --- */
.admin-sub-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.lp_action {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 24px;
    gap: 12px;
    box-sizing: border-box;
}

.lp_action #schoolProfilePreviewCard {
    width: 100%;
}

.admin-sub-btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.admin-sub-btn.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--brand-primary);
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
}

/* --- MODAL SYSTEM & COMMAND PALETTE --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

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

.modal-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    padding: 24px;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open,
    .sidebar.active {
        transform: translateX(0) !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5) !important;
    }

    .sidebar-close-btn {
        display: flex !important;
    }

    .workspace {
        margin-left: 0 !important;
        padding-bottom: calc(var(--bottom-nav-height, 60px) + 20px);
    }

    .mobile-bottom-nav {
        display: block;
    }

    .header-left {
        display: none;
    }

    .search-trigger {
        display: none;
    }

    .mobile_header_left {
        display: flex;
        padding: 0 0px;
    }

    .search-trigger {
        width: 140px;
    }

    .header {
        padding: 0 6px;
    }

    .content-area {
        padding: 16px;
    }

    .lp_action {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
}

/* --- FILE UPLOAD & IMAGE PREVIEW STYLES --- */
.file-upload-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-upload-box {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    background: var(--bg-elevated);
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-box:hover {
    border-color: var(--brand-primary);
    background: var(--brand-light);
}

.file-upload-input {
    display: none;
}

.file-preview-thumb {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 8px;
}

/* --- CAMPUS GALLERY STYLES --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.gallery-card-caption {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- CAMPUS BLOG & NEWS STYLES --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.blog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-snippet {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   SYSTEM SETTINGS & QUICK NAVIGATION DRAWER STYLES
   ========================================================================== */
.settings-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.settings-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-drawer-backdrop.active .settings-drawer {
    transform: translateX(-420px);
}

.settings-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elevated);
}

.settings-drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-drawer-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.settings-drawer-close:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.settings-drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.settings-option-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settings-option-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-option-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.settings-option-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.settings-option-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.theme-pill-group {
    display: flex;
    background: var(--bg-body);
    padding: 3px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    gap: 3px;
}

.theme-pill-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.theme-pill-btn.active {
    background: var(--brand-primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.settings-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.settings-nav-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
    position: relative;
}

.settings-nav-item:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.settings-nav-item i {
    font-size: 18px;
    color: var(--brand-primary);
}

.settings-nav-item span {
    font-size: 13px;
    font-weight: 600;
}

.settings-nav-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--status-danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

.settings-user-card {
    background: linear-gradient(135deg, var(--brand-primary), #047857);
    color: white;
    padding: 16px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-user-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINT OVERRIDES (HEADER & NAVIGATION FOCUS)
   ========================================================================== */

@media (max-width: 1024px) {
    .sidebar {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 310px !important;
        max-width: 88vw !important;
        transform: translateX(-105%) !important;
        z-index: 1200 !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    .sidebar-close-btn {
        display: flex !important;
    }

    .workspace {
        margin-left: 0 !important;
    }

    .header-left,
    .school-identity-header {
        display: none !important;
    }

    .mobile_header_left {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    .header-right {
        gap: 6px !important;
    }
}

@media (min-width: 1025px) {

    .header-left,
    .school-identity-header {
        display: flex !important;
    }

    .mobile_header_left {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .header {
        height: 60px;
        padding: 0 12px;
        position: sticky;
        top: 0;
        z-index: 900;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-right {
        gap: 4px !important;
    }

    .header-icon-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .header-icon-btn i {
        font-size: 18px !important;
    }

    .content-area {
        padding: 12px;
    }

    .page-header-row,
    .card-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .filter-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 8px;
    }

    .header-right {
        gap: 4px;
    }

    .header-btn {
        height: 34px;
        padding: 0 8px;
    }
}

/* ==========================================================================
   PRODUCTION SCHOOL PROFILE, FACULTY, SHIFTS & GALLERY DESIGN SYSTEM
   ========================================================================== */

/* --- Panel Edit / Lock System --- */
.profile-panel {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    position: relative;
}

.profile-panel.panel-locked {
    background: var(--bg-surface);
}

.profile-panel.panel-locked .form-control:disabled,
.profile-panel.panel-locked select:disabled,
.profile-panel.panel-locked textarea:disabled {
    background-color: var(--bg-elevated) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
    cursor: not-allowed;
    opacity: 0.85;
    user-select: text;
}

.profile-panel.panel-locked .upload-dropzone {
    pointer-events: none;
    opacity: 0.6;
    background: var(--bg-elevated);
    cursor: not-allowed;
    border-style: solid;
}

.profile-panel.panel-locked .tag-input-row,
.profile-panel.panel-locked .tag-chip-remove {
    display: none !important;
}

.profile-panel.panel-locked .shift-mode-pill {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.8;
}

.profile-panel.panel-locked input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.profile-panel.panel-editing {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2), var(--shadow-md) !important;
    background: var(--bg-surface);
}

.profile-panel.panel-editing .form-control {
    background-color: var(--bg-surface);
    border-color: var(--brand-primary);
}

.badge-locked {
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.panel-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sm-primary {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-sm-primary:hover {
    background: var(--brand-hover);
    box-shadow: var(--shadow-sm);
}

.btn-sm-cancel {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.btn-sm-cancel:hover {
    background: var(--bg-surface);
    color: var(--status-danger);
    border-color: var(--status-danger);
}

/* ==========================================================================
   ENHANCED REAL-TIME LIVE PROFILE CARD (FACEBOOK-STYLE ADAPTIVE HERO)
   ========================================================================== */
.live-profile-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.25), 0 2px 8px -2px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    width: 100%;
}

.live-profile-card:hover {
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35), 0 6px 16px -2px rgba(0, 0, 0, 0.2);
    border-color: rgba(16, 185, 129, 0.45);
}

/* 1. Cover Container & Cinematic Badging */
.lpc-cover-wrap {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #0f172a;
    width: 100%;
}

.lpc-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-profile-card:hover .lpc-cover-img {
    transform: scale(1.035);
}

.lpc-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.65) 55%, rgba(15, 23, 42, 0.94) 100%);
}

.lpc-cover-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #34d399;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

/* 2. Floating Profile Bar & Avatar Holder */
.lpc-profile-bar {
    padding: 0 clamp(16px, 2.5vw, 28px) clamp(16px, 2vw, 24px) clamp(16px, 2.5vw, 28px);
    position: relative;
    box-sizing: border-box;
}

.lpc-profile-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: -55px;
    margin-bottom: 18px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.lpc-header-left {
    display: flex;
    align-items: flex-end;
    gap: clamp(14px, 2vw, 20px);
    flex: 1 1 auto;
    min-width: 0;
}

.lpc-avatar-holder {
    position: relative;
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 22px;
    background: var(--bg-surface);
    padding: 4px;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 4px solid var(--bg-surface);
    flex-shrink: 0;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

.lpc-avatar-holder:hover {
    transform: translateY(-2px);
}

.lpc-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    background: var(--bg-elevated);
}

.lpc-verified-tick {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid var(--bg-surface);
    font-size: 11px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* 3. Identity Details & Actions */
.lpc-identity-details {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 4px;
}

.lpc-name-en {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin: 0;
    word-break: break-word;
}

.lpc-name-bn {
    font-size: clamp(0.9rem, 1.3vw, 1.08rem);
    color: var(--brand-primary);
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.3;
}

.lpc-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.lpc-meta-chip {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.lpc-meta-chip i {
    color: var(--brand-primary);
    font-size: 11.5px;
}

.lpc-meta-chip-gold {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #d97706;
}

.lpc-meta-chip-gold i {
    color: #d97706;
}

.lpc-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.lpc-preview-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.lpc-preview-action-btn:hover {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 4. Middle Section Grid (Motto + Principal) */
.lpc-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 14px;
    margin-bottom: 14px;
}

.lpc-motto-box {
    padding: 12px 14px;
    background: var(--bg-elevated);
    border-left: 3.5px solid var(--brand-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
    box-sizing: border-box;
}

.lpc-motto-icon {
    color: var(--brand-primary);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.lpc-motto-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lpc-motto-label {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.lpc-motto-text {
    font-size: 12px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* 5. Principal Leadership Card */
.lpc-principal-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
    height: 100%;
    box-sizing: border-box;
}

.lpc-principal-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: var(--shadow-sm);
}

.lpc-principal-avatar-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--bg-surface);
    flex-shrink: 0;
}

.lpc-principal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lpc-principal-content {
    flex: 1 1 auto;
    min-width: 0;
}

.lpc-principal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.lpc-principal-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.lpc-principal-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: var(--brand-light);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lpc-principal-deg {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.lpc-principal-quote {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
    line-height: 1.35;
}

/* 6. Stats Bar Matrix */
.lpc-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.lpc-stat-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.lpc-stat-item:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
}

.lpc-stat-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.lpc-stat-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lpc-stat-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lpc-stat-lbl {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ==========================================================================
   MULTI-TIER RESPONSIVE BREAKPOINTS (LARGE TO MOBILE)
   ========================================================================== */

/* Ultra-Wide Screens (>= 1500px) */
@media (min-width: 1500px) {
    .lpc-cover-wrap {
        height: 270px;
    }

    .lpc-avatar-holder {
        width: 125px;
        height: 125px;
        min-width: 125px;
        border-radius: 26px;
    }

    .lpc-logo-img {
        border-radius: 18px;
    }

    .lpc-profile-header {
        margin-top: -62px;
        margin-bottom: 22px;
    }

    .lpc-verified-tick {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .lpc-name-en {
        font-size: 1.65rem;
    }

    .lpc-name-bn {
        font-size: 1.15rem;
    }

    .lpc-stats-bar {
        gap: 14px;
    }

    .lpc-stat-item {
        padding: 12px 14px;
    }

    .lpc-stat-val {
        font-size: 15px;
    }
}

/* Standard Large Desktop (1200px - 1499px) */
@media (min-width: 1200px) and (max-width: 1499px) {
    .lpc-cover-wrap {
        height: 235px;
    }

    .lpc-avatar-holder {
        width: 110px;
        height: 110px;
        min-width: 110px;
        border-radius: 22px;
    }

    .lpc-profile-header {
        margin-top: -55px;
    }
}

/* Medium Desktop / Laptops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .lpc-cover-wrap {
        height: 210px;
    }

    .lpc-avatar-holder {
        width: 100px;
        height: 100px;
        min-width: 100px;
        border-radius: 20px;
    }

    .lpc-profile-header {
        margin-top: -50px;
    }

    .lpc-grid-2col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .lpc-grid-2col {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lpc-header-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .lpc-cover-wrap {
        height: 165px;
    }

    .lpc-profile-bar {
        padding: 0 14px 16px 14px;
    }

    .lpc-profile-header {
        margin-top: -42px;
        gap: 12px;
    }

    .lpc-avatar-holder {
        width: 82px;
        height: 82px;
        min-width: 82px;
        border-radius: 18px;
    }

    .lpc-logo-img {
        border-radius: 12px;
    }

    .lpc-verified-tick {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .lpc-name-en {
        font-size: 1.15rem;
    }

    .lpc-name-bn {
        font-size: 0.88rem;
    }

    .lpc-stats-bar {
        gap: 8px;
    }

    .lpc-stat-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .lpc-stat-icon-wrap {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .lpc-stat-val {
        font-size: 12px;
    }

    .lpc-stat-lbl {
        font-size: 9.5px;
    }
}

/* Mobile Devices (<= 540px) */
@media (max-width: 540px) {
    .lpc-cover-wrap {
        height: 135px;
    }

    .lpc-cover-badge {
        font-size: 9.5px;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
    }

    .lpc-profile-header {
        flex-direction: column;
        align-items: flex-start;
        margin-top: -38px;
        gap: 10px;
    }

    .lpc-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .lpc-avatar-holder {
        width: 72px;
        height: 72px;
        min-width: 72px;
        border-radius: 16px;
    }

    .lpc-logo-img {
        border-radius: 10px;
    }

    .lpc-identity-details {
        width: 100%;
    }

    .lpc-stats-bar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .lpc-stat-item {
        padding: 10px 12px;
    }

    .lpc-principal-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* --- Shift Operations Mode Selector --- */
.shift-mode-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    background: var(--bg-elevated);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.shift-mode-pill {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shift-mode-pill:hover {
    background: var(--bg-surface);
    color: var(--text-main);
}

.shift-mode-pill.active {
    background: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.shift-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.shift-config-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.shift-config-card.active-shift {
    border-color: var(--brand-primary);
}

.shift-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.shift-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Multi-Degree Tag / Chip Manager --- */
.degree-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 32px;
}

.degree-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-light);
    color: var(--brand-primary);
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.tag-chip-remove {
    background: none;
    border: none;
    color: var(--brand-primary);
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    padding: 0 2px;
    transition: opacity 0.15s;
}

.tag-chip-remove:hover {
    opacity: 1;
    color: var(--status-danger);
}

.tag-input-row {
    display: flex;
    gap: 8px;
}

/* --- Faculty Team & Teachers Directory --- */
.faculty-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.faculty-dept-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.faculty-dept-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.faculty-dept-btn.active,
.faculty-dept-btn:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.faculty-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.faculty-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.fc-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.fc-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.fc-info {
    flex: 1;
    min-width: 0;
}

.fc-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.fc-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-designation {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.fc-dept-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--brand-primary);
    font-weight: 600;
    margin-top: 4px;
}

.fc-degrees-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.degree-tag-badge {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.fc-quote {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--bg-elevated);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    line-height: 1.4;
}

.fc-contact-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
}

.fc-contact-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fc-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 6px;
}

.btn-sm-outline {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-sm-outline:hover {
    background: var(--brand-light);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-sm-danger {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--status-danger);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-sm-danger:hover {
    background: var(--status-danger-bg);
    border-color: var(--status-danger);
}

/* --- Drag-and-Drop & Media Upload Boxes --- */
.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    background: var(--bg-elevated);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-dropzone:hover {
    border-color: var(--brand-primary);
    background: var(--brand-light);
}

.upload-dropzone i {
    font-size: 28px;
    color: var(--brand-primary);
}

.upload-dropzone-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.upload-dropzone-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.file-preview-thumb {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-top: 10px;
    border: 1px solid var(--border-color);
}

/* --- Gallery & Lightbox Styles --- */
.gallery-filter-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.gallery-filter-btn {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.gc-img-wrap {
    height: 140px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.05);
}

.gc-cat-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
}

.gallery-card-caption {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gc-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.btn-icon-danger {
    background: none;
    border: none;
    color: var(--status-danger);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: transform 0.15s;
}

.btn-icon-danger:hover {
    transform: scale(1.2);
}

/* Lightbox Modal */
.lightbox-card {
    max-width: 800px;
    width: 90%;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lightbox-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #0b0f19;
    display: block;
}

/* Blog Cards */
.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.blog-card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.blog-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 6px;
}

.blog-card-snippet {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* ==========================================================================
   ROUTINE BUILDER STUDIO STYLES
   ========================================================================== */
.routine-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--bg-surface);
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.routine-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.routine-select-control {
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.routine-select-control:focus {
    border-color: var(--brand-primary);
}

.routine-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.routine-clash-alert {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.routine-clash-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--status-danger);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.routine-matrix-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.routine-matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.routine-matrix-table th {
    background: var(--bg-elevated);
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
}

.routine-matrix-table th:last-child {
    border-right: none;
}

.routine-matrix-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    vertical-align: top;
    height: 115px;
    width: 13.5%;
}

.routine-matrix-table td:last-child {
    border-right: none;
}

.routine-day-header {
    width: 90px;
    background: var(--bg-elevated);
    font-weight: 800;
    font-size: 13px;
    color: var(--text-main);
    text-align: center;
    vertical-align: middle !important;
}

/* Routine Slot Cards */
.routine-slot-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.routine-slot-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.routine-slot-subject {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.routine-slot-teacher {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.routine-slot-room {
    font-size: 10px;
    font-weight: 600;
    color: var(--brand-primary);
    background: var(--brand-light);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: auto;
}

.routine-slot-empty {
    height: 100%;
    min-height: 95px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    transition: all var(--transition-fast);
}

.routine-slot-empty:hover {
    background: var(--bg-elevated);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.routine-slot-break {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--status-warning);
    font-size: 11px;
    font-weight: 700;
    padding: 8px;
}

/* Subject Badges */
.subject-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.subject-physics {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
}

.subject-chemistry {
    background: rgba(225, 29, 72, 0.12);
    color: #e11d48;
}

.subject-math {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
}

.subject-biology {
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
}

.subject-ict {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.subject-bangla {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

.subject-english {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
}

/* Printable Timetable Layout */
@media print {

    .sidebar,
    .header,
    .admin-sub-nav,
    .routine-toolbar,
    .routine-actions-group {
        display: none !important;
    }

    .content-area,
    .page-view,
    .panel {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .routine-matrix-table th,
    .routine-matrix-table td {
        border: 1px solid #000 !important;
    }
}

/* Custom Period Manager Modal Styles */
.period-manager-row {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-fast);
}

.period-manager-row:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.period-type-badge {
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.type-class {
    background: rgba(5, 150, 105, 0.15);
    color: #059669;
}

.type-break {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.type-assembly {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.type-prayer {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

.type-lab_double {
    background: rgba(225, 29, 72, 0.15);
    color: #e11d48;
}

.preset-chip-btn {
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.preset-chip-btn:hover {
    background: var(--brand-light);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* ==========================================================================
   ENTERPRISE STUDENT MANAGEMENT SYSTEM (SMS) STYLES
   ========================================================================== */

/* Sub-Tab Navigation */
.sms-tab-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sms-tab-btn {
    padding: 8px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.sms-tab-btn:hover {
    background: var(--surface-hover);
    color: var(--text-main);
    border-color: var(--border-color);
}

.sms-tab-btn.active {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* ==========================================================================
   STUDENT DIRECTORY FILTER & SEARCH TOOLBAR (ULTRA-COMPACT & SMART RESPONSIVE)
   ========================================================================== */

.student-filter-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    background: transparent;
    transition: all var(--transition-fast);
}

.student-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.student-search-box {
    position: relative;
    flex: 1 1 auto;
    min-width: 120px;
}

.student-search-box i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12.5px;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.student-search-box:focus-within i {
    color: var(--brand-primary);
}

.student-search-input {
    width: 100%;
    height: 35px;
    padding-left: 32px !important;
    padding-right: 10px;
    font-size: 12.5px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.student-search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
    background: var(--bg-surface);
}

.student-toolbar-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.student-tool-btn {
    height: 35px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-main);
}

.student-tool-btn:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: var(--surface-hover);
}

.view-mode-toggle {
    display: inline-flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2px;
    gap: 2px;
    height: 35px;
    align-items: center;
}

.view-mode-btn {
    border: none;
    background: transparent;
    padding: 4px 9px;
    border-radius: calc(var(--radius-md) - 2px);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 29px;
    transition: all var(--transition-fast);
}

.view-mode-btn.active {
    background: var(--bg-surface);
    color: var(--brand-primary);
    box-shadow: var(--shadow-xs);
}

.student-filter-selects {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    width: 100%;
}

.student-filter-select {
    width: 100%;
    height: 32px;
    font-size: 12px;
    font-weight: 500;
    padding: 0 6px 0 8px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    text-overflow: ellipsis;
    transition: all var(--transition-fast);
}

.student-filter-select:hover {
    border-color: var(--text-muted);
}

.student-filter-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.12);
    background: var(--bg-surface);
}

.btn-label-desktop {
    display: inline;
}

/* ==========================================================================
   BREAKPOINTS: DESKTOP SINGLE ROW vs TABLET vs MOBILE
   ========================================================================== */

/* Large Desktop (> 1280px): Everything in 1 sleek seamless line */
@media (min-width: 1280px) {
    .student-filter-toolbar {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .student-search-row {
        width: auto;
        display: contents;
    }
    .student-search-box {
        flex: 0 0 240px;
        max-width: 250px;
        order: 1;
    }
    .student-filter-selects {
        display: flex;
        flex: 1 1 auto;
        gap: 6px;
        order: 2;
    }
    .student-filter-select {
        flex: 1 1 110px;
        min-width: 95px;
        max-width: 140px;
        height: 35px;
    }
    .student-toolbar-actions {
        order: 3;
    }
}

/* Tablets (768px - 1279px): 2 rows (Row 1: Search + Actions, Row 2: 6 filter dropdowns) */
@media (max-width: 1279px) and (min-width: 768px) {
    .student-filter-toolbar {
        gap: 8px;
    }
    .student-filter-selects {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
    .student-filter-select {
        height: 34px;
        font-size: 12px;
    }
}

/* Mobile Screens (441px - 767px): Ultra-compact 3-column micro-grid (only 2 lines total!) */
@media (max-width: 767px) {
    .student-filter-toolbar {
        margin-bottom: 10px;
        gap: 6px;
    }
    .student-search-row {
        gap: 6px;
    }
    .student-search-input {
        height: 34px;
        font-size: 12px;
    }
    .student-filter-selects {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .student-filter-select {
        height: 32px;
        font-size: 11.5px;
    }
    .student-tool-btn {
        height: 34px;
        padding: 0 8px;
    }
    .btn-label-desktop {
        display: none;
    }
    .view-mode-toggle {
        height: 34px;
    }
    .view-mode-btn {
        height: 28px;
        padding: 3px 6px;
        font-size: 11px;
    }
}

/* Extra Small Phones (<= 440px): Smart compact fit with icon action buttons */
@media (max-width: 440px) {
    .student-search-input {
        height: 32px;
        font-size: 11.5px;
        padding-left: 28px !important;
    }
    .student-search-box i {
        left: 9px;
        font-size: 11px;
    }
    .student-filter-selects {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    .student-filter-select {
        height: 30px;
        font-size: 11px;
        padding: 0 2px 0 4px;
    }
    .student-toolbar-actions {
        gap: 4px;
    }
    .view-mode-toggle {
        height: 32px;
        padding: 1px;
    }
    .view-mode-btn {
        height: 26px;
        padding: 2px 5px;
        font-size: 10.5px;
        gap: 3px;
    }
    .view-mode-label {
        display: none;
    }
    .student-tool-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        min-width: 32px;
    }
}

/* Micro Devices (<= 320px) */
@media (max-width: 320px) {
    .student-filter-selects {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Bulk Selection Toolbar */
.bulk-actions-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elevated);
    border: 1px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.2s ease;
}

.bulk-actions-bar.active {
    display: flex;
}

.bulk-count-badge {
    font-weight: 700;
    font-size: 13px;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bulk-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* View Mode Switcher */
.view-mode-toggle {
    display: inline-flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
}

.view-mode-btn {
    border: none;
    background: transparent;
    padding: 5px 10px;
    border-radius: calc(var(--radius-md) - 2px);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition-fast);
}

.view-mode-btn.active {
    background: var(--bg-surface);
    color: var(--brand-primary);
    box-shadow: var(--shadow-xs);
}

/* Student Grid View (Card Dossiers) */
.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.student-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-xs);
    transition: all 0.25s ease;
}

.student-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(225, 29, 72, 0.4);
}

.sc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sc-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sc-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-roll-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--brand-primary);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--bg-surface);
}

.sc-info {
    flex: 1 1 auto;
    min-width: 0;
}

.sc-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-name:hover {
    color: var(--brand-primary);
}

.sc-name-bn {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-class-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-primary);
    background: var(--brand-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-top: 5px;
}

.sc-details-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    margin-bottom: 12px;
}

.sc-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sc-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 6px;
}

/* Classroom Daily Attendance Register */
.attendance-roll-table {
    width: 100%;
    border-collapse: collapse;
}

.att-btn-group {
    display: inline-flex;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.att-toggle-btn {
    border: none;
    background: transparent;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.att-toggle-btn:hover {
    background: var(--surface-hover);
}

.att-toggle-btn.active.att-present {
    background: #10b981;
    color: #ffffff;
}

.att-toggle-btn.active.att-late {
    background: #f59e0b;
    color: #ffffff;
}

.att-toggle-btn.active.att-absent {
    background: #ef4444;
    color: #ffffff;
}

.att-toggle-btn.active.att-leave {
    background: #8b5cf6;
    color: #ffffff;
}

/* Demographic & Academic Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.stat-progress-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.stat-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.stat-progress-track {
    width: 100%;
    height: 8px;
    background: var(--surface-hover);
    border-radius: 4px;
    overflow: hidden;
}

.stat-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--brand-primary);
    transition: width 0.4s ease;
}

.blood-group-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.blood-item-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
}

.blood-item-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--status-danger);
}

.blood-item-lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 2px;
}

/* 360 Dossier Modal */
.dossier-nav {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.dossier-tab-btn {
    border: none;
    background: var(--bg-elevated);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.dossier-tab-btn:hover {
    color: var(--text-main);
}

.dossier-tab-btn.active {
    background: var(--brand-primary);
    color: #ffffff;
}

.dossier-pane {
    display: none;
}

.dossier-pane.active {
    display: block;
    animation: fadeIn 0.2s ease;
}


/* Document / Certificate Print Styling */
@media print {

    .sidebar,
    .top-header,
    .header-search,
    .mobile-bottom-nav,
    .sms-tab-nav,
    .panel-header button,
    .btn-primary,
    .btn-sm-outline {
        display: none !important;
    }
}