/* ============================================
   NCHSM DIGITAL STUDENT DASHBOARD - ULTRA EDITION
   SCHOOL COLORS: Navy (#0B2A4A), Royal Blue (#2A5C9A), Gold (#FDB913)

   

 *========== CSS VARIABLES - ULTRA COMPLETE ========== */
@import url('base.css');
@import url('layout.css');
@import url('components.css');
@import url('messages.css');
@import url('calendar.css');
@import url('courses.css');
@import url('dashboard.css');
@import url('resources.css');      
@import url('reader.css');
@import url('nurseiq.css');
@import url('loading.css');
@import url('profile.css');
@import url('attendance.css');
@import url('responsive.css');
@import url('gamification.css');
@import url('reviews-newsletter.css');

:root {
    /* ===== SCHOOL LOGO COLORS ===== */
    --color-navy: #0B2A4A;
    --color-royal: #2A5C9A;
    --color-gold: #FDB913;
    --color-white: #FFFFFF;
    
    /* ===== PRIMARY SYSTEM ===== */
    --color-primary: var(--color-navy);
    --color-primary-light: #1A3A5A;
    --color-primary-lighter: #2A4A6A;
    --color-primary-dark: #051A30;
    --color-primary-darker: #020F1F;
    --color-secondary: var(--color-royal);
    --color-secondary-light: #3B6DAB;
    --color-secondary-lighter: #4B7DBB;
    --color-secondary-dark: #1A4A7A;
    --color-accent: var(--color-gold);
    --color-accent-light: #FECA4C;
    --color-accent-dark: #E5A600;
    
    /* ===== SEMANTIC COLORS ===== */
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-success-dark: #047857;
    --color-warning: #F59E0B;
    --color-warning-light: #FEF3C7;
    --color-warning-dark: #B45309;
    --color-danger: #EF4444;
    --color-danger-light: #FEE2E2;
    --color-danger-dark: #B91C1C;
    --color-info: #3B82F6;
    --color-info-light: #DBEAFE;
    --color-info-dark: #1E40AF;
    
    /* ===== NEUTRALS - COMPLETE SPECTRUM ===== */
    --color-dark: #1F2937;
    --color-darker: #111827;
    --color-darkest: #030712;
    --color-gray-900: #1F2937;
    --color-gray-800: #2D3748;
    --color-gray-700: #374151;
    --color-gray-600: #4B5563;
    --color-gray-500: #6B7280;
    --color-gray-400: #9CA3AF;
    --color-gray-300: #D1D5DB;
    --color-gray-200: #E5E7EB;
    --color-gray-100: #F3F4F6;
    --color-gray-50: #F9FAFB;
    --color-light: #F9FAFB;
    --color-lighter: #FFFFFF;
    --color-offwhite: #F3F4F6;
    
    /* ===== GRADIENTS - ULTRA ===== */
    --gradient-primary: linear-gradient(135deg, var(--color-navy), var(--color-royal));
    --gradient-primary-hover: linear-gradient(135deg, var(--color-royal), var(--color-navy));
    --gradient-gold: linear-gradient(135deg, var(--color-gold), #FECB4C);
    --gradient-gold-hover: linear-gradient(135deg, #FECB4C, var(--color-gold));
    --gradient-sidebar: linear-gradient(180deg, var(--color-navy), #051A30);
    --gradient-header: linear-gradient(135deg, var(--color-navy), var(--color-royal));
    --gradient-card: linear-gradient(135deg, #667eea, #764ba2);
    --gradient-success: linear-gradient(135deg, #10B981, #34D399);
    --gradient-warning: linear-gradient(135deg, #F59E0B, #FBBF24);
    --gradient-danger: linear-gradient(135deg, #EF4444, #F87171);
    --gradient-info: linear-gradient(135deg, #3B82F6, #60A5FA);
    
    /* ===== SHADOWS - ULTRA COMPLETE ===== */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.06);
    --shadow-gold: 0 4px 14px rgba(253,185,19,0.3);
    --shadow-gold-lg: 0 10px 25px rgba(253,185,19,0.4);
    --shadow-navy: 0 4px 14px rgba(11,42,74,0.3);
    --shadow-royal: 0 4px 14px rgba(42,92,154,0.3);
    --shadow-colored: 0 4px 14px rgba(79,70,229,0.4);
    
    /* ===== SPACING - COMPLETE SYSTEM ===== */
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;
    --space-1: 0.25rem;
    --space-1-5: 0.375rem;
    --space-2: 0.5rem;
    --space-2-5: 0.625rem;
    --space-3: 0.75rem;
    --space-3-5: 0.875rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-9: 2.25rem;
    --space-10: 2.5rem;
    --space-11: 2.75rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-28: 7rem;
    --space-32: 8rem;
    
    /* ===== BORDER RADIUS - COMPLETE ===== */
    --radius-none: 0;
    --radius-sm: 0.125rem;
    --radius-base: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-4xl: 2rem;
    --radius-full: 9999px;
    
    /* ===== TYPOGRAPHY ===== */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    
    /* ===== FONT WEIGHTS ===== */
    --font-thin: 100;
    --font-extralight: 200;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* ===== LINE HEIGHTS ===== */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* ===== TRANSITIONS - ULTRA SMOOTH ===== */
    --transition-none: none;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* ===== Z-INDEX LAYERS ===== */
    --z-negative: -1;
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-auto: auto;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 9999;
    --z-loading: 10000;
    
    /* ===== CONTAINER WIDTHS ===== */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
}

/* ========== RESET & BASE - ULTRA CLEAN ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: #f3f4f6;
    color: var(--color-gray-800);
    line-height: var(--leading-normal);
    min-height: 100vh;
    height: 100%;
    overflow-x: hidden;
    position: relative;
}

/* ========== TYPOGRAPHY - ULTRA ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
    color: var(--color-darker);
}

h1 { 
    font-size: clamp(1.875rem, 5vw, 2.5rem); 
    letter-spacing: -0.025em;
    font-weight: var(--font-extrabold);
}
h2 { 
    font-size: clamp(1.5rem, 4vw, 2rem); 
    letter-spacing: -0.025em;
}
h3 { 
    font-size: clamp(1.25rem, 3vw, 1.5rem); 
}
h4 { 
    font-size: clamp(1.125rem, 2.5vw, 1.25rem); 
}
h5 { 
    font-size: 1.125rem; 
}
h6 { 
    font-size: 1rem; 
}

p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.subtitle {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    margin-bottom: var(--space-6);
}

.text-small {
    font-size: 0.875rem;
    line-height: var(--leading-normal);
}

.text-xs {
    font-size: 0.75rem;
    line-height: var(--leading-normal);
}

/* ========== LAYOUT - ULTRA ========== */
.container {
    display: flex;
    min-height: calc(100vh - 70px);
    width: 100%;
    margin-top: 70px;
    position: relative;
}

.main {
    flex: 1;
    width: 100%;
    padding: var(--space-6);
    background-color: #f3f4f6;
    position: relative;
    z-index: var(--z-10);
    transition: margin-left var(--transition-base);
    min-height: calc(100vh - 70px);
    overflow-y: auto;
}

/* ========== LOADING SCREEN - ULTRA ========== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-loading);
    transition: opacity 0.8s ease, visibility 0.8s ease;
    color: white;
}

.loading-container {
    text-align: center;
    max-width: 500px;
    padding: var(--space-8);
}

/* Logo Animation */
.logo-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-8);
}

.logo-circle {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 3px solid var(--color-gold);
    animation: pulse 2s infinite;
    box-shadow: var(--shadow-gold-lg);
}

.logo-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    animation: ringPulse 2s infinite;
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(253,185,19,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes ringPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.welcome-text h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--space-2);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: var(--font-extrabold);
}

.welcome-text .subtitle {
    color: var(--color-gold);
    font-size: 1rem;
    font-weight: var(--font-semibold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.progress-container {
    margin: var(--space-6) 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-gold);
    width: 0%;
    border-radius: var(--radius-full);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--color-gold);
}

.progress-text {
    margin-top: var(--space-3);
    font-size: 0.95rem;
    color: white;
    font-weight: var(--font-medium);
}

.status-steps {
    display: flex;
    justify-content: space-between;
    margin: var(--space-6) 0;
    gap: var(--space-2);
}

.status-step {
    flex: 1;
    font-size: 0.8rem;
    opacity: 0.5;
    text-align: center;
    color: white;
    transition: opacity var(--transition-base);
    padding: var(--space-2);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
}

.status-step.completed {
    opacity: 1;
    color: var(--color-gold);
    background: rgba(253,185,19,0.2);
}

.fun-fact {
    margin: var(--space-6) 0;
    padding: var(--space-4);
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-gold);
}

.fun-fact i {
    font-size: 1.5rem;
    color: var(--color-gold);
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: dots 1.4s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots {
    0%, 60%, 100% { transform: scale(0.5); opacity: 0.5; }
    30% { transform: scale(1); opacity: 1; }
}

/* ========== HEADER - ULTRA ========== */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    background: var(--gradient-header);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: var(--z-fixed);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--color-gold);
    box-shadow: var(--shadow-lg);
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.header-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-gold);
    transition: transform var(--transition-fast);
    background: white;
    padding: 2px;
    box-shadow: var(--shadow-gold);
}

.header-logo:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: white;
}

.header-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.main-title {
    font-size: 1.5rem;
    font-weight: var(--font-extrabold);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-titles .subtitle {
    font-size: 0.75rem;
    margin: 2px 0 0;
    color: var(--color-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: var(--font-semibold);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.15);
    border: 2px solid var(--color-gold);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.user-profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 6px var(--space-3);
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid var(--color-gold);
}

.profile-trigger:hover {
    background: rgba(255,255,255,0.25);
    border-color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.profile-avatar.round {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-gold);
    object-fit: cover;
    transition: all var(--transition-fast);
}

.profile-trigger:hover .profile-avatar.round {
    border-color: white;
    transform: scale(1.05);
}

.profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-name {
    font-weight: var(--font-semibold);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    color: white;
    line-height: 1.3;
}

.profile-role {
    font-size: 0.7rem;
    color: var(--color-gold);
    line-height: 1.2;
    font-weight: var(--font-semibold);
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
    color: white;
    margin-left: var(--space-1);
}

.profile-trigger:hover .dropdown-icon {
    transform: rotate(180deg);
    color: var(--color-gold);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    min-width: 240px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2) 0;
    display: none;
    z-index: var(--z-dropdown);
    border: 2px solid var(--color-gold);
    animation: slideDown var(--transition-fast);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--color-gray-800);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: var(--color-gray-100);
    color: var(--color-navy);
    padding-left: calc(var(--space-4) + 8px);
}

.dropdown-menu a:hover i {
    color: var(--color-gold);
    transform: scale(1.1);
}

.dropdown-menu a i {
    width: 20px;
    color: var(--color-royal);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-gray-200);
    margin: var(--space-2) 0;
}

.current-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px var(--space-4);
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: white;
    border: 1px solid var(--color-gold);
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

.current-time i {
    color: var(--color-gold);
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.icon-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--color-gold);
    backdrop-filter: blur(5px);
}

.icon-btn:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    transform: translateY(-2px);
    border-color: white;
    box-shadow: var(--shadow-gold);
}

/* ========== SIDEBAR - ULTRA ========== */
.sidebar {
    width: 280px;
    background: var(--gradient-sidebar);
    color: white;
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: 4px 0 25px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    border-right: 3px solid var(--color-gold);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: var(--space-6) var(--space-4);
    text-align: center;
    border-bottom: 3px solid var(--color-gold);
    background: rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.sidebar-header h2 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    font-weight: var(--font-bold);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar-header h2 i {
    margin-right: var(--space-2);
    color: var(--color-gold);
    text-shadow: 0 0 10px var(--color-gold);
}

.sidebar-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    margin-top: var(--space-2);
}

/* ===== NAVIGATION - ALL ITEMS 100% IDENTICAL ===== */
.nav {
    list-style: none;
    padding: var(--space-4) 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.nav li {
    margin: 0;
    width: 100%;
    position: relative;
}

/* BASE STYLES - EVERY ITEM EXACTLY THE SAME */
.nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: 0.95rem;
    border-left: 4px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
    margin: 2px 0;
}

/* ICONS - ALL IDENTICAL */
.nav a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
}

/* TEXT - ALL IDENTICAL */
.nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all var(--transition-base);
}

/* BADGES - ALL IDENTICAL */
.nav-badge {
    background: var(--color-gold);
    color: var(--color-navy);
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all var(--transition-base);
}

/* HOVER STATE - ALL IDENTICAL */
.nav a:hover {
    background: rgba(42, 92, 154, 0.3);
    color: white;
    border-left-color: var(--color-gold);
    padding-left: 28px;
}

.nav a:hover i {
    color: var(--color-gold);
    transform: scale(1.15);
}

.nav a:hover .nav-badge {
    background: white;
    color: var(--color-navy);
    transform: scale(1.1);
}

/* ACTIVE STATE - ALL IDENTICAL */
.nav a.active {
    background: linear-gradient(90deg, rgba(42,92,154,0.4), rgba(42,92,154,0.2));
    color: white;
    border-left-color: var(--color-gold);
    font-weight: var(--font-semibold);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.nav a.active i {
    color: var(--color-gold);
}

.nav a.active .nav-badge {
    background: white;
    color: var(--color-navy);
    font-weight: var(--font-bold);
}

/* FOCUS STATE - ALL IDENTICAL */
.nav a:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: -2px;
    background: rgba(42,92,154,0.3);
}

/* REMOVED ALL SPECIAL STYLING - NO nurseiq-nav, nav-icon-wrapper, nav-pulse, nav-subtitle */
/* EVERY NAV ITEM IS PERFECTLY IDENTICAL */

.sidebar-footer {
    padding: var(--space-4);
    text-align: center;
    border-top: 3px solid var(--color-gold);
    background: rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.version-info {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.version-info i {
    color: var(--color-gold);
    margin-right: 4px;
}

/* ========== OVERLAY ========== */
.overlay {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11,42,74,0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    z-index: calc(var(--z-fixed) - 1);
}

.overlay.active {
    display: block;
}

/* ========== TAB CONTENT - ULTRA ========== */
.tab-content {
    display: none;
    width: 100%;
    max-width: none;    /* Remove the width limit */
    margin: 0;          /* Remove auto centering */
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    border: 2px solid var(--color-gold);
    box-shadow: var(--shadow-xl);
    animation: fadeIn var(--transition-base);
}
.tab-content.active {
    display: block;
}

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

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

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ========== WELCOME CARD - COMPACT ========== */
.welcome-card {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    position: relative;
    overflow: hidden;
    min-height: 65px;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--color-navy), var(--color-royal), var(--color-gold));
}

.welcome-header h2 {
    margin: 0 0 2px 0;
    font-size: 1.1rem;
    color: var(--color-darker);
}

.welcome-header h2 i {
    color: var(--color-gold);
    margin-right: 6px;
    font-size: 0.9rem;
}

.welcome-subtitle {
    margin: 0;
    color: var(--color-gray-500);
    font-size: 0.75rem;
}

.welcome-time {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--color-gray-100);
    border-radius: 20px;
    color: var(--color-gray-600);
    font-size: 0.7rem;
    white-space: nowrap;
    border: 1px solid var(--color-gray-200);
}

.welcome-time i {
    color: var(--color-gold);
    font-size: 0.7rem;
}
/* ========== ANNOUNCEMENT BANNER - COMPACT ========== */
.announcement-banner {
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-gold);
}

.announcement-icon {
    width: 36px;
    height: 36px;
    background: rgba(253,185,19,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 1;
    flex-shrink: 0;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.announcement-content {
    flex: 1;
    z-index: 1;
}

.announcement-title {
    font-size: 0.7rem;
    font-weight: var(--font-semibold);
    margin-bottom: 2px;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-text {
    margin: 0;
    opacity: 0.9;
    font-size: 0.8rem;
}
/* ========== CARD GRID - ULTRA COMPACT ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: 1px solid var(--color-gray-200);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-navy), var(--color-royal), var(--color-gold));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

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

.card-header h3 {
    margin: 0;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.stat-card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon.attendance { background: rgba(11,42,74,0.1); color: var(--color-navy); }
.card-icon.exam { background: rgba(42,92,154,0.1); color: var(--color-royal); }
.card-icon.courses { background: rgba(11,42,74,0.1); color: var(--color-navy); }
.card-icon.resources { background: rgba(42,92,154,0.1); color: var(--color-royal); }
.card-icon.nurseiq { background: rgba(253,185,19,0.1); color: var(--color-gold); }

.card-body {
    text-align: left;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: var(--font-extrabold);
    color: var(--color-darker);
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-subtitle {
    font-size: 0.7rem;
    color: var(--color-gray-500);
    margin-bottom: 6px;
}

.stat-details {
    font-size: 0.65rem;
    color: var(--color-gray-500);
    border-top: 1px solid var(--color-gray-200);
    padding-top: 6px;
    margin-top: 6px;
}

.stat-details p {
    margin: 2px 0;
    display: flex;
    justify-content: space-between;
}

.stat-details p strong {
    color: var(--color-royal);
    font-weight: var(--font-semibold);
}

/* ========== ACTION CARDS GRID - ULTRA COMPACT ========== */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.action-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
}

.action-card.alert { border-left: 4px solid var(--color-danger); }
.action-card.warning { border-left: 4px solid var(--color-warning); }
.action-card.success { border-left: 4px solid var(--color-success); }
.action-card.nurseiq { border-left: 4px solid var(--color-gold); }

.action-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-200);
}

.action-header i {
    font-size: 0.9rem;
    color: var(--color-royal);
    width: 20px;
    text-align: center;
}

.action-header h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: var(--font-semibold);
    flex: 1;
}

.action-body {
    padding: 10px 12px;
    flex: 1;
}

.action-body p {
    margin: 0;
    color: var(--color-gray-600);
    font-size: 0.8rem;
    line-height: 1.4;
}

.announcement-meta {
    margin-top: 6px;
    font-size: 0.65rem;
    color: var(--color-gray-500);
    padding-top: 6px;
    border-top: 1px dashed var(--color-gray-200);
}

.action-footer {
    padding: 8px 12px;
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

.btn-action {
    width: 100%;
    padding: 6px 12px;
    background: var(--color-navy);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: var(--font-semibold);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-action:hover {
    background: var(--color-royal);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.btn-action i {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.btn-action:hover i {
    transform: translateX(3px);
}

/* ========== ENHANCED TABLE SYSTEM - ULTRA ========== */

/* Base Table Container */
.table-container {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    overflow-x: auto;
    box-shadow: var(--shadow-lg);
    margin: var(--space-6) 0;
}

/* Modern Table - Base */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 0.95rem;
}

.modern-table th {
    background: var(--gradient-primary);
    color: white;
    font-weight: var(--font-semibold);
    padding: 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid var(--color-gold);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.modern-table th:first-child {
    border-top-left-radius: var(--radius-lg);
}

.modern-table th:last-child {
    border-top-right-radius: var(--radius-lg);
}

.modern-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-gray-200);
    vertical-align: middle;
    color: var(--color-gray-700);
}

.modern-table tbody tr {
    transition: background-color var(--transition-fast);
}

.modern-table tbody tr:hover {
    background-color: var(--color-gray-50);
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Calendar Table */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.calendar-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: var(--font-semibold);
    border-bottom: 2px solid var(--color-gold);
}

.calendar-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-gray-200);
}

.calendar-table tbody tr:hover td {
    background-color: var(--color-gray-50);
}

/* Attendance Table */
.attendance-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.attendance-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: var(--font-semibold);
    white-space: nowrap;
    border-bottom: 2px solid var(--color-gold);
}

.attendance-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-gray-200);
}

.attendance-table tbody tr:hover td {
    background-color: var(--color-gray-50);
}

/* Assessments Table */
.assessments-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.assessments-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: var(--font-semibold);
    white-space: nowrap;
    border-bottom: 2px solid var(--color-gold);
}

.assessments-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-gray-200);
}

.assessments-table .text-center {
    text-align: center;
}

/* Courses Table */
.courses-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.courses-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: var(--font-semibold);
    border-bottom: 2px solid var(--color-gold);
}

.courses-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-gray-200);
}

/* Tickets Table */
.tickets-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.tickets-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: var(--font-semibold);
    border-bottom: 2px solid var(--color-gold);
}

.tickets-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-gray-200);
}

/* Table Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-semibold);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.upcoming {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
}

.status-badge.ongoing {
    background: var(--color-info-light);
    color: var(--color-info-dark);
}

.status-badge.completed {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.status-badge.present {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.status-badge.absent {
    background: var(--color-danger-light);
    color: var(--color-danger-dark);
}

.status-badge.open {
    background: var(--color-info-light);
    color: var(--color-info-dark);
}

.status-badge.progress {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
}

.status-badge.resolved {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.status-badge.urgent {
    background: var(--color-danger-light);
    color: var(--color-danger-dark);
    animation: pulse 2s infinite;
}

/* ========== HORIZONTAL SUMMARY ROW - ULTRA ========== */
.horizontal-summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    background: white;
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-md);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3);
    border-right: 1px solid var(--color-gray-200);
}

.summary-item:last-child {
    border-right: none;
}

.summary-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    border: 2px solid var(--color-gold);
    box-shadow: var(--shadow-gold);
}

.summary-content {
    flex: 1;
    min-width: 0;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: var(--font-extrabold);
    color: var(--color-darker);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-title {
    font-size: 0.9rem;
    font-weight: var(--font-semibold);
    color: var(--color-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-label {
    font-size: 0.7rem;
    color: var(--color-gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== ATTENDANCE CHECK-IN - ULTRA ========== */
.check-in-card {
    background: white;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-gray-200);
    margin-bottom: var(--space-8);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.check-in-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5);
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-200);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.check-in-card .card-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-navy);
}

.check-in-card .card-header h3 i {
    color: var(--color-gold);
}

.gps-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 16px;
    background: white;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--color-gray-600);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
}

.gps-status i {
    color: var(--color-gold);
}

.check-in-controls {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-6);
}

.control-group {
    margin-bottom: var(--space-5);
}

.control-group label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    font-weight: var(--font-semibold);
    color: var(--color-gray-700);
}

.control-group label i {
    color: var(--color-gold);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 16px 12px 16px;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: white;
    font-size: 0.95rem;
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--color-royal);
    box-shadow: 0 0 0 3px rgba(253,185,19,0.2);
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    pointer-events: none;
}

.location-display {
    background: var(--color-gray-50);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--color-gray-300);
}

.location-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    justify-content: space-between;
}

.location-coordinates {
    display: flex;
    gap: var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.coord-label {
    color: var(--color-gray-500);
    font-weight: var(--font-semibold);
}

.location-accuracy {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.accuracy-dot {
    width: 10px;
    height: 10px;
    background: var(--color-warning);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.accuracy-dot.accurate {
    background: var(--color-gold);
}

.check-in-action {
    text-align: center;
    margin: var(--space-8) 0;
}

.btn-checkin {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-5) var(--space-8);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    min-width: 280px;
    border: 2px solid var(--color-gold);
}

.btn-checkin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(253,185,19,0.3), transparent);
    transition: left 0.5s;
}

.btn-checkin:hover::before {
    left: 100%;
}

.btn-checkin:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-lg);
}

.btn-checkin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--color-gray-400);
}

.btn-text {
    font-size: 1.2rem;
}

.btn-subtext {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: var(--font-normal);
    color: var(--color-gold);
}

.check-in-requirements {
    background: var(--color-gray-50);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
    text-align: left;
}

.check-in-requirements p {
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    color: var(--color-gray-700);
}

.check-in-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-in-requirements li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    color: var(--color-gray-600);
}

.check-in-requirements li.valid {
    color: var(--color-success);
}

.check-in-requirements li .fa-check {
    color: var(--color-success);
}

.req-icon {
    width: 20px;
    text-align: center;
}

/* ========== MESSAGE CENTER - ULTRA ========== */
.message-info-card {
    background: linear-gradient(135deg, var(--color-info-light), #EFF6FF);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    border-left: 4px solid var(--color-info);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--color-info);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.info-content h4 {
    margin: 0 0 4px 0;
    color: var(--color-info-dark);
}

.info-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

.info-actions {
    margin-top: var(--space-2);
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: var(--radius-full);
    color: var(--color-info-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
    border: 1px solid var(--color-info);
}

.info-link:hover {
    background: var(--color-info);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.message-filters {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: var(--font-medium);
}

.filter-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-navy);
}

.filter-btn.active {
    background: var(--color-navy);
    color: white;
    border-color: var(--color-gold);
}

.filter-count {
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: var(--font-bold);
}

/* ========== SUPPORT TICKETS - ULTRA ========== */
.ticket-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.open { 
    background: var(--color-info-light); 
    color: var(--color-info-dark); 
}

.stat-icon.progress { 
    background: var(--color-warning-light); 
    color: var(--color-warning-dark); 
}

.stat-icon.resolved { 
    background: var(--color-success-light); 
    color: var(--color-success-dark); 
}

.stat-icon.urgent { 
    background: var(--color-danger-light); 
    color: var(--color-danger-dark); 
}

.stat-info h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: var(--font-extrabold);
}

.stat-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.new-ticket-form {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    border: 2px solid var(--color-gold);
    box-shadow: var(--shadow-xl);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.form-header h3 {
    margin: 0;
    color: var(--color-navy);
}

.form-header h3 i {
    color: var(--color-gold);
    margin-right: 8px;
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-gray-200);
    background: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--color-danger);
    color: white;
    border-color: var(--color-danger);
}

.file-upload {
    border: 2px dashed var(--color-gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-fast);
}

.file-upload:hover {
    border-color: var(--color-gold);
    background: var(--color-gray-50);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.upload-label i {
    font-size: 2rem;
    color: var(--color-royal);
}

.upload-label span {
    font-weight: var(--font-medium);
    color: var(--color-gray-700);
}

.upload-label small {
    font-size: 0.7rem;
    color: var(--color-gray-500);
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

/* ========== MODAL - ULTRA ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11,42,74,0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop);
    animation: fadeIn var(--transition-fast);
}

.modal-container {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid var(--color-gold);
    box-shadow: var(--shadow-2xl);
    animation: slideUp var(--transition-base);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 2px solid var(--color-gold);
    background: var(--gradient-primary);
    color: white;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.modal-header h3 i {
    color: var(--color-gold);
    margin-right: 8px;
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* ========== NURSEIQ QUESTION BANK - ULTRA ========== */
.question-bank-section {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin: var(--space-6) 0;
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-lg);
}

.question-bank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--color-royal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(253,185,19,0.2);
}

.search-box input:focus + i {
    color: var(--color-gold);
}

/* ========== OFFLINE INDICATOR ========== */
.offline-indicator {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-danger);
    color: white;
    text-align: center;
    padding: var(--space-3);
    z-index: var(--z-fixed);
    font-size: 0.95rem;
    animation: slideDown var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: var(--font-medium);
}

/* ========== TOAST NOTIFICATION - ULTRA ========== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-navy);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-toast);
    display: none;
    max-width: 400px;
    border-left: 4px solid var(--color-gold);
    animation: slideInRight var(--transition-base);
}

.toast.success {
    background: var(--color-success);
    border-left-color: var(--color-gold);
}

.toast.error {
    background: var(--color-danger);
    border-left-color: var(--color-gold);
}

.toast.warning {
    background: var(--color-warning);
    border-left-color: var(--color-gold);
}

.toast.info {
    background: var(--color-info);
    border-left-color: var(--color-gold);
}

/* ========== FOOTER - ULTRA ========== */
.app-footer {
    margin-top: var(--space-8);
    background: var(--gradient-sidebar);
    color: white;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    overflow: hidden;
    border-top: 3px solid var(--color-gold);
}

.footer-content {
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: var(--space-8);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.footer-section h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-gold);
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.contact-item i {
    width: 20px;
    color: var(--color-gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover i {
    color: var(--color-gold);
    transform: scale(1.2);
}

.footer-links a i {
    width: 20px;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition-fast);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-4) var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    background: rgba(0,0,0,0.2);
}

.copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.copyright i {
    color: var(--color-gold);
    margin: 0 4px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border: 2px solid var(--color-gold);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-lg);
}

/* ========== TRANSCRIPT MODAL - ULTRA ========== */
#transcript-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11,42,74,0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal-backdrop);
}

#transcript-modal > div {
    background: white;
    padding: var(--space-5);
    border-radius: var(--radius-2xl);
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 3px solid var(--color-gold);
    box-shadow: var(--shadow-2xl);
    animation: slideUp var(--transition-base);
}

#closeTranscriptBtn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-gray-500);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

#closeTranscriptBtn:hover {
    background: var(--color-danger);
    color: white;
    transform: rotate(90deg);
}

/* ========== RESPONSIVE DESIGN - ULTRA ========== */

/* Desktop */
@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0) !important;
        width: 260px;
    }
    
    .main {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
    
    .overlay,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .horizontal-summary-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-item:nth-child(2) {
        border-right: none;
    }
    
    .summary-item:nth-child(3),
    .summary-item:nth-child(4) {
        border-top: 1px solid var(--color-gray-200);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .main-header {
        padding: 0 var(--space-3);
        height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .header-logo {
        width: 35px;
        height: 35px;
    }
    
    .main-title {
        font-size: 1.2rem;
    }
    
    .header-titles .subtitle,
    .current-time,
    .header-actions {
        display: none !important;
    }
    
    .profile-info,
    .dropdown-icon {
        display: none;
    }
    
    .sidebar {
        top: 60px;
        width: 85vw;
        max-width: 300px;
    }
    
    .overlay {
        top: 60px;
    }
    
    .container {
        margin-top: 60px;
    }
    
    .main {
        padding: var(--space-3);
    }
    
    .tab-content {
        padding: var(--space-4);
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .horizontal-summary-row {
        grid-template-columns: 1fr;
    }
    
    .summary-item {
        border-right: none;
        border-bottom: 1px solid var(--color-gray-200);
        padding-bottom: var(--space-3);
    }
    
    .summary-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
    }
    
    .btn-checkin {
        min-width: 100%;
        padding: var(--space-4);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .toast {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-titles {
        display: none;
    }
    
    .logo-container {
        gap: var(--space-2);
    }
    
    .profile-trigger {
        padding: 4px;
        background: transparent;
    }
    
    .profile-avatar.round {
        width: 40px;
        height: 40px;
    }
    
    .dropdown-menu {
        right: -10px;
        min-width: 220px;
    }
    
    .main {
        padding: var(--space-2);
    }
    
    .tab-content {
        padding: var(--space-3);
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .main-header,
    .sidebar,
    .overlay,
    .mobile-menu-toggle,
    .current-time,
    .header-actions,
    .btn-action,
    .btn-checkin,
    .app-footer,
    .offline-indicator,
    .toast {
        display: none !important;
    }
    
    .main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .tab-content {
        display: block !important;
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .stat-card,
    .action-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}

/* ========== UTILITY CLASSES - ULTRA COMPLETE ========== */
.hidden { display: none !important; }
.visible { display: block !important; }

/* Flex Utilities */
.d-flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.align-center { align-items: center; }
.align-stretch { align-items: stretch; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-nowrap { white-space: nowrap; }
.text-truncate { 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Width/Height */
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.w-auto { width: auto; }
.h-auto { height: auto; }

/* Margin Utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* Padding Utilities */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }

/* Gap Utilities */
.gap-0 { gap: 0; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* Border Radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-gold { box-shadow: var(--shadow-gold); }

/* School Color Utilities */
.bg-navy { background-color: var(--color-navy); }
.bg-royal { background-color: var(--color-royal); }
.bg-gold { background-color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-royal { color: var(--color-royal); }
.text-gold { color: var(--color-gold); }
.border-navy { border-color: var(--color-navy); }
.border-royal { border-color: var(--color-royal); }
.border-gold { border-color: var(--color-gold); }

/* Animation Utilities */
.fade-in { animation: fadeIn var(--transition-base); }
.fade-in-up { animation: fadeInUp var(--transition-base); }
.fade-in-down { animation: fadeInDown var(--transition-base); }
.scale-in { animation: scaleIn var(--transition-base); }

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

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

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Hover Effects */
.hover-lift { transition: transform var(--transition-fast); }
.hover-lift:hover { transform: translateY(-4px); }

.hover-scale { transition: transform var(--transition-fast); }
.hover-scale:hover { transform: scale(1.05); }

.hover-gold { transition: all var(--transition-fast); }
.hover-gold:hover { 
    color: var(--color-gold); 
    border-color: var(--color-gold); 
}

/* ========== SCROLLBAR - ULTRA ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-royal);
    border-radius: 10px;
    border: 2px solid var(--color-gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-royal) var(--color-gray-100);
}
/* ========== SIMPLE DESKTOP SPACING FIX ========== */

/* Only apply on desktop screens */
@media (min-width: 1200px) {
    
    /* Add breathing room to the main content area */
    .main {
        padding: 2rem 3rem !important;
    }
    
    /* Increase gap between cards */
    .cards-grid {
        gap: 1.75rem !important;
    }
    
    /* Increase gap between action cards */
    .actions-grid {
        gap: 1.75rem !important;
    }
    
    /* Add more padding inside cards */
    .stat-card {
        padding: 1.5rem !important;
    }
    
    /* Make numbers slightly larger */
    .stat-value {
        font-size: 1.8rem !important;
    }
    
    /* Add spacing to tab content */
    .tab-content {
        padding: 2rem !important;
    }
    
    /* Better spacing for welcome section */
    .welcome-card {
        padding: 1.25rem 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Better spacing for announcements */
    .announcement-banner {
        padding: 1rem 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Better spacing for the summary row */
    .horizontal-summary-row {
        gap: 1.5rem !important;
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
}
/* ========== PERMANENT SPACING FIX - DO NOT REMOVE ========== */
/* Fixes the empty space issue on desktop */

/* Remove container width limitation on all screens */
.container {
    max-width: none !important;
    width: 100% !important;
}

/* Desktop-specific spacing (1200px and above) */
@media (min-width: 1200px) {
    /* Main content padding */
    .main {
        padding: 40px 48px !important;
        width: auto !important;
        flex: 1 !important;
    }
    
    /* Cards grid spacing */
    .cards-grid {
        gap: 28px !important;
        margin-bottom: 40px !important;
        width: 100% !important;
    }
    
    /* Stat cards internal padding */
    .stat-card {
        padding: 24px 20px !important;
    }
    
    .stat-value {
        font-size: 2rem !important;
    }
    
    /* Action cards */
    .actions-grid {
        gap: 28px !important;
        margin: 40px 0 !important;
    }
    
    /* Tab content */
    .tab-content {
        padding: 36px !important;
        margin-bottom: 40px !important;
    }
    
    /* Welcome and announcement cards */
    .welcome-card {
        padding: 20px 28px !important;
        margin-bottom: 28px !important;
    }
    
    .announcement-banner {
        padding: 16px 28px !important;
        margin-bottom: 28px !important;
    }
    
    /* Summary row */
    .horizontal-summary-row {
        gap: 28px !important;
        padding: 28px !important;
        margin-bottom: 40px !important;
    }
    
    /* Tables */
    .modern-table th, 
    .modern-table td {
        padding: 16px 24px !important;
    }
    
    /* Footer */
    .app-footer {
        margin-top: 60px !important;
    }
    
    .footer-content {
        padding: 48px 48px !important;
        gap: 48px !important;
    }
}
/* ========== COMPLETE SPACING & FONT FIX ========== */
/* Fixes desktop spacing AND mobile font sizes */

/* 1. Remove container width limitation on all screens */
.container {
    max-width: none !important;
    width: 100% !important;
}

/* 2. Desktop spacing (1200px and above) */
@media (min-width: 1200px) {
    .main {
        padding: 40px 48px !important;
        width: auto !important;
        flex: 1 !important;
    }
    
    .cards-grid {
        gap: 28px !important;
        margin-bottom: 40px !important;
        width: 100% !important;
    }
    
    .stat-card {
        padding: 24px 20px !important;
    }
    
    .stat-value {
        font-size: 2rem !important;
    }
    
    .actions-grid {
        gap: 28px !important;
        margin: 40px 0 !important;
    }
    
    .tab-content {
        padding: 36px !important;
        margin-bottom: 40px !important;
    }
    
    .welcome-card {
        padding: 20px 28px !important;
        margin-bottom: 28px !important;
    }
    
    .announcement-banner {
        padding: 16px 28px !important;
        margin-bottom: 28px !important;
    }
    
    .horizontal-summary-row {
        gap: 28px !important;
        padding: 28px !important;
        margin-bottom: 40px !important;
    }
    
    .modern-table th, 
    .modern-table td {
        padding: 16px 24px !important;
    }
    
    .app-footer {
        margin-top: 60px !important;
    }
    
    .footer-content {
        padding: 48px 48px !important;
        gap: 48px !important;
    }
}

/* 3. Mobile font size fix (767px and below) */
@media (max-width: 767px) {
    .stat-value {
        font-size: 1.25rem !important;
    }
    
    .card-header h3 {
        font-size: 0.7rem !important;
    }
    
    .stat-subtitle {
        font-size: 0.65rem !important;
    }
    
    .welcome-header h2 {
        font-size: 1rem !important;
    }

    .announcement-text {
        font-size: 0.75rem !important;
    }
    
    .action-header h3 {
        font-size: 0.8rem !important;
    }
    
    .action-body p {
        font-size: 0.75rem !important;
    }
}
/* =====================================================
   STUDENT PORTAL - UNIT REGISTRATION STYLES
   ===================================================== */

/* Unit Registration Header Stats */
.unit-reg-header {
    margin-bottom: 25px;
}

.unit-reg-header .header-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.unit-reg-header .stat-card {
    background: white;
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 150px;
}

.unit-reg-header .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.selected {
    background: #dbeafe;
    color: #2563eb;
}

.stat-icon.approved {
    background: #d1fae5;
    color: #059669;
}

.stat-icon.pending {
    background: #fed7aa;
    color: #ea580c;
}

/* Cards */
.reg-type-section,
.available-units-section,
.registered-units-section {
    margin-bottom: 25px;
}

.card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.card-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Tables */
.units-table {
    width: 100%;
    border-collapse: collapse;
}

.units-table th,
.units-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.units-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.units-table tr:hover {
    background: #f9fafb;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-approved {
    background: #d1fae5;
    color: #059669;
}

.status-pending {
    background: #fed7aa;
    color: #ea580c;
}

.status-rejected {
    background: #fee2e2;
    color: #dc2626;
}

.status-registered {
    background: #dbeafe;
    color: #2563eb;
}

.status-available {
    background: #f3f4f6;
    color: #6b7280;
}

/* Buttons */
.btn-primary {
    background: #4C1D95;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.btn-success {
    background: #059669;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-danger:hover {
    background: #b91c1c;
}

.action-btn-drop {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s;
}

.action-btn-drop:hover {
    background: #fee2e2;
}

/* Form Elements */
.modern-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.modern-select:focus {
    outline: none;
    border-color: #4C1D95;
    box-shadow: 0 0 0 2px rgba(76, 29, 149, 0.1);
}

/* Layout */
.row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.col-md-4 {
    flex: 1;
    min-width: 200px;
}

.col-md-12 {
    flex: 1;
    min-width: 100%;
}

/* Loading States */
.loading-row td {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #e5e7eb;
    border-top-color: #4C1D95;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.875rem;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 15px;
}

/* Warning Message */
#maxUnitsWarning {
    margin-top: 10px;
    color: #dc2626;
    font-size: 12px;
    display: none;
}

/* Checkbox Styling */
.units-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4C1D95;
}

/* Filter Section */                                                   
.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .unit-reg-header .header-stats {
        flex-direction: column;
    }
    
    .units-table th,
    .units-table td {
        padding: 8px;
        font-size: 12px;
    }
    
    .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .col-md-4 {
        width: 100%;
    }
    
    .card {
        padding: 1rem;
    }
    
    .btn-primary,
    .btn-success {
        width: 100%;
        margin-top: 10px;
    }
    
    .btn-primary:first-child {
        margin-top: 0;
    }
}

/* Select Wrapper for better styling */
.select-wrapper {
    position: relative;
}

.select-wrapper .select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}

/* Animation for loading */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-state {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Additional Styles for Checkbox Header */
#selectAllUnits {
    margin: 0;
}

/* Toolbar styling */
.toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-box input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: #4C1D95;
    box-shadow: 0 0 0 2px rgba(76, 29, 149, 0.1);
}

/* Course card styles for active courses */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.course-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}

.course-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.course-card .course-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.course-card .course-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* Program badges */
.program-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.badge-krchn {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-tvet {
    background: #fef3c7;
    color: #92400e;
}
/* Exam Card Styles - UPDATED for better table formatting */
.exam-card-container {
    max-width: 1100px;
    margin: 0 auto;
}

.exam-card-template {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    margin-bottom: 30px;
}

.exam-card-header {
    background: linear-gradient(135deg, #4C1D95, #7c3aed);
    color: white;
    padding: 25px;
    text-align: center;
}

.exam-card-header h2 {
    margin: 0 0 5px;
    font-size: 20px;
    letter-spacing: 1px;
}

.exam-card-header p {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.9;
}

.semester-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 8px;
}

.eligibility-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 30px;
    margin-top: 12px;
    font-weight: bold;
    font-size: 14px;
}

.eligibility-badge.eligible {
    background: #059669;
}

.eligibility-badge.not-eligible {
    background: #dc2626;
}

.exam-card-body {
    padding: 25px;
}

.exam-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.exam-info-item label {
    font-size: 11px;
    color: #6b7280;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-info-item .value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 3px;
}

.status-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-message i {
    font-size: 24px;
}

.status-message.eligible {
    background: #d1fae5;
    color: #059669;
}

.status-message.not-eligible {
    background: #fee2e2;
    color: #dc2626;
}

.status-message p {
    margin: 0;
    font-size: 14px;
}

.unit-count-info {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 15px;
    padding: 10px;
    background: #fef3c7;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
}

/* IMPROVED TABLE STYLES */
.registered-units-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 12px;
}

.registered-units-table th,
.registered-units-table td {
    padding: 10px 8px;
    text-align: left;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

.registered-units-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
}

.registered-units-table td.text-center {
    text-align: center;
    vertical-align: middle;
}

/* Unit Code column */
.registered-units-table td:first-child,
.registered-units-table th:first-child {
    text-align: center;
    width: 5%;
}

/* Unit Code column */
.registered-units-table td:nth-child(2),
.registered-units-table th:nth-child(2) {
    width: 18%;
    white-space: nowrap;
}

/* Unit Name column - allows wrapping */
.registered-units-table td:nth-child(3),
.registered-units-table th:nth-child(3) {
    width: 32%;
    word-wrap: break-word;
    white-space: normal;
}

/* Credits column */
.registered-units-table td:nth-child(4),
.registered-units-table th:nth-child(4) {
    text-align: center;
    width: 8%;
}

/* Signature column */
.registered-units-table td:nth-child(5),
.registered-units-table th:nth-child(5) {
    width: 20%;
}

/* Date column */
.registered-units-table td:nth-child(6),
.registered-units-table th:nth-child(6) {
    width: 10%;
}

/* Status column */
.registered-units-table td:nth-child(7),
.registered-units-table th:nth-child(7) {
    text-align: center;
    width: 7%;
}

.signature-cell, .date-cell {
    vertical-align: middle;
}

.signature-line-blank, .date-line-blank {
    display: flex;
    justify-content: center;
    align-items: center;
}

.signature-placeholder, .date-placeholder {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: #4b5563;
    display: inline-block;
    border-bottom: 1px solid #9ca3af;
    min-width: 100px;
    font-size: 11px;
    text-align: center;
}

.status-approved {
    color: #059669;
    font-weight: bold;
    font-size: 14px;
}

.unit-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.summary-badge {
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
}

.summary-label {
    color: #6b7280;
}

.summary-value {
    font-weight: bold;
    color: #4C1D95;
    margin-left: 5px;
}

.no-units-warning {
    text-align: center;
    padding: 30px;
    background: #fffbeb;
    border-radius: 10px;
    margin-bottom: 20px;
}

.no-units-warning i {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 15px;
}

.no-units-warning h4 {
    color: #d97706;
    margin-bottom: 10px;
}

.no-units-warning ol {
    text-align: left;
    max-width: 400px;
    margin: 15px auto;
    color: #6b7280;
}

.no-units-warning .btn-primary {
    background: #4C1D95;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
}

.exam-card-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.signature-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.signature-line {
    text-align: center;
    min-width: 150px;
}

.signature-line span {
    display: inline-block;
    width: 180px;
    border-top: 1px solid #000;
    margin-bottom: 8px;
}

.signature-line p {
    margin: 5px 0;
    font-size: 11px;
    color: #6b7280;
}

.signature-line small {
    font-size: 9px;
    color: #9ca3af;
}

.declaration-section {
    margin: 20px 0;
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

.declaration-box h5 {
    margin: 0 0 10px 0;
    color: #92400e;
}

.student-signature-line {
    margin-top: 15px;
    text-align: right;
}

.student-signature-line span {
    display: inline-block;
    width: 200px;
    border-top: 1px solid #000;
    margin-top: 10px;
}

.student-signature-line p {
    margin: 5px 0 0 0;
    font-size: 10px;
    color: #6b7280;
}

.stamp {
    text-align: center;
}

.stamp-text {
    border: 2px solid #4C1D95;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    color: #4C1D95;
    font-weight: bold;
}

.exam-rules {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.exam-rules h5 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #374151;
}

.exam-rules ul {
    margin: 0;
    padding-left: 20px;
}

.exam-rules li {
    font-size: 11px;
    margin-bottom: 5px;
    color: #6b7280;
}

.print-btn {
    background: #4C1D95;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.print-btn:hover {
    background: #5b21b6;
    transform: translateY(-1px);
}

.print-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Logo styles */
.logo-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

.exam-card-logo {
    max-width: 80px;
    height: auto;
}

/* Print-specific styles */
@media print {
    .print-btn {
        display: none;
    }
    
    .exam-card-template {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .registered-units-table {
        font-size: 10px;
    }
    
    .registered-units-table th,
    .registered-units-table td {
        padding: 6px 4px;
    }
    
    .signature-placeholder, .date-placeholder {
        min-width: 70px;
        font-size: 9px;
    }
    
    .unit-name-cell {
        max-width: 180px;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .exam-card-body {
        padding: 15px;
    }
    
    .exam-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .registered-units-table {
        font-size: 10px;
    }
    
    .registered-units-table th,
    .registered-units-table td {
        padding: 6px 4px;
    }
    
    .signature-line span {
        width: 120px;
    }
    
    .signature-section {
        flex-direction: column;
        align-items: center;
    }
}

/* Dashboard Exam Card */
.examcard-card .card-icon.examcard {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.examcard-card .stat-value {
    color: #dc2626;
    font-weight: bold;
}

@media print {
    .sidebar, .main-header, .nav, .print-btn, .tab-content > h2, .tab-content > p {
        display: none !important;
    }
    .exam-card-container {
        margin: 0;
        padding: 0;
    }
    .exam-card-template {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
/* Last Login Info Styles */
.last-login-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(76, 29, 149, 0.08);
    padding: 6px 15px;
    border-radius: 30px;
    margin-right: 15px;
}

.last-login-info i {
    font-size: 16px;
    color: #4C1D95;
}

.last-login-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.last-login-label {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.last-login-time {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
}

/* Mobile responsive - SHOW on mobile (not hide) */
@media (max-width: 768px) {
    .last-login-info {
        display: flex !important;  /* Show on mobile */
        padding: 4px 10px;
        margin-right: 8px;
        gap: 6px;
    }
    
    .last-login-info i {
        font-size: 12px;
    }
    
    .last-login-label {
        font-size: 8px;
    }
    
    .last-login-time {
        font-size: 9px;
    }
}

/* For very small screens (below 480px) - hide text, keep icon only */
@media (max-width: 480px) {
    .last-login-details {
        display: none;
    }
    
    .last-login-info {
        padding: 5px 8px;
    }
    
    .last-login-info i {
        font-size: 12px;
        margin: 0;
    }
}
/* ==================== PREMIUM BLOCK FILTER STYLES ==================== */

.block-filter-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(76, 29, 149, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.block-filter-premium:hover {
    box-shadow: 0 12px 28px rgba(76, 29, 149, 0.12);
    border-color: rgba(76, 29, 149, 0.25);
}

.filter-premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eef2ff;
}

.filter-premium-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4C1D95 0%, #7c3aed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(76, 29, 149, 0.3);
}

.title-icon i {
    font-size: 24px;
    color: white;
}

.title-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.title-text p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #6b7280;
}

.current-block-premium {
    background: linear-gradient(135deg, #4C1D95 0%, #6d28d9 100%);
    padding: 10px 20px;
    border-radius: 40px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.25);
}

.current-block-premium i {
    font-size: 14px;
}

.current-block-premium strong {
    font-weight: 700;
}

.filter-premium-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.select-premium-wrapper {
    flex: 2;
    min-width: 220px;
    position: relative;
}

.select-premium {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.select-premium:hover {
    border-color: #4C1D95;
    box-shadow: 0 2px 8px rgba(76, 29, 149, 0.1);
}

.select-premium:focus {
    outline: none;
    border-color: #4C1D95;
    box-shadow: 0 0 0 3px rgba(76, 29, 149, 0.2);
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 12px;
}

.btn-refresh-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #4C1D95 0%, #6d28d9 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(76, 29, 149, 0.25);
}

.btn-refresh-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.35);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.btn-refresh-premium:active {
    transform: translateY(0);
}

.btn-refresh-premium:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-refresh-premium i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-refresh-premium:hover i {
    transform: rotate(180deg);
}

.filter-premium-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 12px;
    font-size: 12px;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.filter-premium-info i {
    font-size: 14px;
    color: #22c55e;
}

/* ==================== PREMIUM SEARCH & FILTERS ==================== */

.resources-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.search-box-premium {
    flex: 2;
    min-width: 250px;
    position: relative;
}

.search-box-premium i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}

.search-box-premium input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.search-box-premium input:focus {
    outline: none;
    border-color: #4C1D95;
    box-shadow: 0 0 0 3px rgba(76, 29, 149, 0.1);
}

.filter-group-premium {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: #4C1D95;
}

/* ==================== HIGH-QUALITY RESOURCE CARDS ==================== */

.resource-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eef2ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(76, 29, 149, 0.15);
    border-color: rgba(76, 29, 149, 0.2);
}

.resource-preview {
    flex-shrink: 0;
}

.preview-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: all 0.3s ease;
}

.resource-card:hover .preview-icon {
    transform: scale(1.05);
}

.preview-icon.pdf i { 
    color: #ef4444;
    filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.2));
}
.preview-icon.image i { 
    color: #3b82f6;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}
.preview-icon.video i { 
    color: #8b5cf6;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.2));
}

.resource-details {
    flex: 1;
}

.resource-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.resource-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-tag {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 30px;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.block-tag {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4C1D95;
    font-weight: 600;
}

.read-only-badge {
    background: linear-gradient(135deg, #4C1D95 0%, #6d28d9 100%);
    color: white !important;
}

.resource-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-btn {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.view-btn {
    background: linear-gradient(135deg, #4C1D95 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(76, 29, 149, 0.25);
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.35);
}

/* ==================== LOADING STATES ==================== */

.loading-state-premium {
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner-premium {
    width: 60px;
    height: 60px;
    border: 4px solid #eef2ff;
    border-top-color: #4C1D95;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spinPremium 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spinPremium {
    to { transform: rotate(360deg); }
}

.empty-state-premium {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-premium i {
    font-size: 80px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.premium-btn {
    background: linear-gradient(135deg, #4C1D95 0%, #6d28d9 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.3);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .block-filter-premium {
        padding: 18px;
    }
    
    .filter-premium-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-premium-controls {
        flex-direction: column;
    }
    
    .select-premium-wrapper {
        width: 100%;
    }
    
    .btn-refresh-premium {
        width: 100%;
        justify-content: center;
    }
    
    .resource-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .resource-preview {
        align-self: center;
    }
    
    .resource-actions {
        width: 100%;
    }
    
    .action-btn {
        flex: 1;
        text-align: center;
    }
    
    .resources-controls {
        flex-direction: column;
    }
    
    .filter-group-premium {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .resource-title {
        font-size: 18px;
    }
    
    .preview-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .meta-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
}
/* Logout Modal Styles */
.swal2-popup.logout-popup {
    border-radius: 16px;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

.logout-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.logout-confirm-btn {
    background: #4C1D95 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.logout-confirm-btn:hover {
    background: #3b1680 !important;
    transform: translateY(-2px);
}

.logout-cancel-btn {
    background: #6b7280 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.logout-cancel-btn:hover {
    background: #4b5563 !important;
}

/* SweetAlert2 custom animations */
.swal2-show {
    animation: fadeInUp 0.3s ease-out !important;
}

.swal2-hide {
    animation: fadeOutDown 0.2s ease-in !important;
}

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

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}
/* ==================== LEARNING HUB TABS ==================== */

.learning-hub-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    padding: 5px;
    background: #f1f5f9;
    border-radius: 16px;
    flex-wrap: wrap;
}

.hub-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hub-tab i {
    font-size: 16px;
}

.hub-tab:hover {
    background: rgba(76, 29, 149, 0.1);
    color: #4C1D95;
}

.hub-tab.active {
    background: #4C1D95;
    color: white;
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.3);
}

.hub-module {
    animation: fadeIn 0.3s ease;
}

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

/* Online Learning Sections */
.learning-section {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.learning-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.learning-section .section-header h3 {
    margin: 0;
    font-size: 18px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

.videos-grid, .quizzes-grid, .notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.video-card, .quiz-card, .note-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.video-card:hover, .quiz-card:hover, .note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #4C1D95;
}

.video-card i, .quiz-card i, .note-card i {
    font-size: 32px;
    margin-bottom: 12px;
}

.video-card i { color: #dc2626; }
.quiz-card i { color: #f59e0b; }
.note-card i { color: #10b981; }

.video-card h4, .quiz-card h4, .note-card h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
}

.video-card p, .quiz-card p, .note-card p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.btn-play, .btn-start-quiz, .btn-download {
    margin-top: 12px;
    padding: 6px 12px;
    background: #4C1D95;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    width: 100%;
    transition: background 0.3s;
}

.btn-play:hover, .btn-start-quiz:hover, .btn-download:hover {
    background: #5b21b6;
}

/* Responsive */
@media (max-width: 768px) {
    .learning-hub-nav {
        flex-direction: column;
    }
    
    .hub-tab {
        justify-content: center;
    }
    
    .videos-grid, .quizzes-grid, .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .learning-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ==================== DROPDOWN MENU STYLES FOR MY LEARNING HUB ==================== */

/* Dropdown container */
.has-dropdown {
    position: relative;
}

/* Dropdown toggle link */
.has-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

/* Dropdown arrow icon */
.dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: auto;
    font-size: 12px;
}

/* Rotate arrow when dropdown is open */
.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown submenu - THE MAIN DROPDOWN MENU */
.dropdown-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    list-style: none;
    margin: 0;
    display: none;
}

/* Show dropdown when parent has open class */
.has-dropdown.open .dropdown-submenu {
    display: block !important;
}

/* Dropdown menu items */
.dropdown-submenu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Dropdown links */
.dropdown-submenu a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 40px !important;
    color: #374151 !important;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white !important;
}

/* Hover effect */
.dropdown-submenu a:hover {
    background: #f3f4f6 !important;
    color: #4f46e5 !important;
}

/* Active state */
.dropdown-submenu a.active {
    background: #e0e7ff !important;
    color: #4f46e5 !important;
    border-left: 3px solid #4f46e5;
}

/* Dropdown divider */
.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Icons in dropdown */
.dropdown-submenu a i {
    width: 20px;
    color: #6b7280;
    font-size: 14px;
}

.dropdown-submenu a:hover i {
    color: #4f46e5;
}

/* ==================== MOBILE DROPDOWN STYLES ==================== */
@media (max-width: 768px) {
    .dropdown-submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f9fafb !important;
        border: none;
        border-radius: 0;
        padding-left: 20px;
    }
    
    .dropdown-submenu a {
        padding-left: 60px !important;
        background: #f9fafb !important;
    }
    
    .dropdown-submenu a:hover {
        background: #e5e7eb !important;
    }
}

/* ==================== FIX FOR DASHBOARD CARDS ==================== */
.stat-card[data-tab="learning-hub"] {
    cursor: pointer;
}

.stat-card[data-tab="learning-hub"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
}
/* ==================== ACADEMIC REPORTS BEAUTIFUL STYLES ==================== */
.reports-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #2d1b69 100%);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.reports-header .header-content h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #c084fc, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.report-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.report-tab {
    background: rgba(255,255,255,0.05);
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.report-tab i { margin-right: 8px; }

.report-tab:hover {
    background: rgba(139, 92, 246, 0.3);
    color: white;
    transform: translateY(-2px);
}

.report-tab.active {
    background: linear-gradient(135deg, #4C1D95, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 29, 149, 0.3);
}

.gpa-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gpa-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gpa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.gpa-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.gpa-icon.semester { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.gpa-icon.cumulative { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.gpa-icon.credits { background: linear-gradient(135deg, #10b981, #047857); }
.gpa-icon.rank { background: linear-gradient(135deg, #f59e0b, #d97706); }

.gpa-info { flex: 1; }
.gpa-label { font-size: 13px; color: rgba(255,255,255,0.6); display: block; margin-bottom: 5px; }
.gpa-value { font-size: 32px; font-weight: 700; color: white; line-height: 1; }
.gpa-grade { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 5px; display: block; }

.grades-table, .transcript-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    overflow: hidden;
}

.grades-table th, .transcript-table th {
    background: rgba(139, 92, 246, 0.2);
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    color: #c084fc;
    border-bottom: 2px solid #4C1D95;
}

.grades-table td, .transcript-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.grade-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}
.grade-A { background: #10b981; color: white; }
.grade-B { background: #3b82f6; color: white; }
.grade-C { background: #f59e0b; color: white; }
.grade-F { background: #ef4444; color: white; }

.status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.status-pass { background: rgba(16, 185, 129, 0.2); color: #34d
/* ==================== ACADEMIC REPORTS VISIBILITY FIX ==================== */

/* Force dark text on white background for all report content */
#academic-reports,
#academic-reports * {
    color: #1f2937 !important;
}

/* Override for GPA cards to keep gradient backgrounds */
#academic-reports .gpa-card .gpa-value,
#academic-reports .gpa-card .gpa-label,
#academic-reports .gpa-card .gpa-grade {
    color: white !important;
}

/* Ensure tables have proper contrast */
#academic-reports .grades-table,
#academic-reports .transcript-table {
    background: white !important;
}

#academic-reports .grades-table td,
#academic-reports .transcript-table td {
    color: #1f2937 !important;
    background: white !important;
}

#academic-reports .grades-table th,
#academic-reports .transcript-table th {
    background: #4C1D95 !important;
    color: white !important;
}

#academic-reports .grades-table tr:hover td,
#academic-reports .transcript-table tr:hover td {
    background: #f3f4f6 !important;
}

/* GPA cards styling - keep gradient */
#academic-reports .gpa-card {
    background: linear-gradient(135deg, #1e1b4b, #2d1b69) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

#academic-reports .gpa-card .gpa-value {
    color: white !important;
}

/* Report tabs styling */
#academic-reports .report-tab {
    color: #6b7280 !important;
    background: #f3f4f6 !important;
}

#academic-reports .report-tab.active {
    background: #4C1D95 !important;
    color: white !important;
}

/* Progress items */
#academic-reports .progress-item {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-bottom: 12px !important;
}

#academic-reports .progress-item .course-name {
    color: #1f2937 !important;
    font-weight: 600 !important;
}

#academic-reports .progress-item .progress-percent {
    color: #4C1D95 !important;
    font-weight: 600 !important;
}

/* Grade cells */
#academic-reports .grade-cell .grade-letter {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Table text center alignment */
#academic-reports .text-center {
    text-align: center !important;
}
/* ========== TIMETABLE STYLES - COMPACT VERSION ========== */

/* Next Class Snap Widget */
.next-class-snap {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.next-class-snap-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.next-class-snap-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.next-class-snap-info h4 {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.next-class-snap-info p {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 700;
}

.next-class-snap-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
}

.next-class-snap-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.next-class-snap-details i {
    font-size: 12px;
    opacity: 0.8;
}

/* Week Filter Dropdown */
.timetable-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.week-filter-dropdown {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    font-family: inherit;
}

.class-count {
    font-size: 12px;
    color: #6b7280;
}

/* Compact Timetable Table */
.timetable-compact-wrapper {
    background: white;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timetable-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 600px;
}

.timetable-compact th {
    background: #4C1D95;
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.timetable-compact td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.timetable-compact tr:hover td {
    background: #faf5ff;
}

/* Day column */
.timetable-day {
    font-weight: 600;
    width: 65px;
    background: #faf5ff;
    white-space: nowrap;
}

/* Time column */
.timetable-time {
    font-family: monospace;
    font-size: 11px;
    white-space: nowrap;
    width: 75px;
    font-weight: 500;
}

/* Course column */
.timetable-course {
    font-weight: 500;
}

.timetable-course strong {
    font-size: 13px;
}

.course-code {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* Lecturer column */
.timetable-lecturer {
    font-size: 12px;
    color: #4b5563;
    white-space: nowrap;
}

/* Venue column */
.timetable-venue {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

/* Tiny Badges */
.badge-tiny {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    margin-left: 6px;
    font-weight: 600;
}

.badge-exam {
    background: #fef3c7;
    color: #d97706;
}

.badge-holiday {
    background: #fee2e2;
    color: #dc2626;
}

.badge-pending {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-study {
    background: #e0e7ff;
    color: #4338ca;
}

/* Empty State */
.timetable-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.timetable-empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.timetable-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Loading State */
.timetable-loading {
    text-align: center;
    padding: 40px;
}

/* Section Title */
.timetable-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.timetable-section-title i {
    color: #4C1D95;
    font-size: 20px;
}

.timetable-section-title span {
    color: #4C1D95;
}

/* No classes row */
.no-class-cell {
    color: #9ca3af;
    text-align: center;
    padding: 10px;
}

/* Holiday row */
.holiday-row td {
    background: #fef2f2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .next-class-snap {
        padding: 10px 15px;
    }
    
    .next-class-snap-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .next-class-snap-info p {
        font-size: 13px;
    }
    
    .next-class-snap-details {
        font-size: 11px;
        gap: 12px;
    }
    
    .timetable-compact {
        font-size: 11px;
    }
    
    .timetable-compact th,
    .timetable-compact td {
        padding: 8px 8px;
    }
    
    .timetable-day {
        width: 50px;
    }
    
    .timetable-time {
        font-size: 10px;
        width: 65px;
    }
    
    .timetable-lecturer,
    .timetable-venue {
        white-space: normal;
        word-break: break-word;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .timetable-compact th:nth-child(4),
    .timetable-compact td:nth-child(4) {
        display: none;
    }
    
    .next-class-snap-details span:last-child {
        display: none;
    }
}
/* ============================================ */
/* NURSING SCHOOL SYSTEM MODULE STYLES */
/* ============================================ */

/* Tab Navigation */
.nav-tabs {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.nav-tabs > li {
    margin-bottom: -1px;
}

.nav-tabs > li > a {
    color: #4a5568;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    transition: all 0.2s;
}

.nav-tabs > li > a:hover {
    background: transparent;
    color: #4C1D95;
    border-bottom: 2px solid #4C1D95;
}

.nav-tabs > li.active > a {
    color: #4C1D95;
    background: transparent;
    border-bottom: 2px solid #4C1D95;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 15px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #343a40 !important;
    color: white !important;
    padding: 12px;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    border: none;
}

.table td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}

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

/* Form Controls */
.form-control {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #4C1D95;
    box-shadow: 0 0 0 2px rgba(76, 29, 149, 0.1);
}

/* Input number spinners */
input[type="number"] {
    text-align: center;
    width: 70px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-warning {
    background: #d97706;
    color: white;
}

.btn-warning:hover {
    background: #b45309;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-block {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Text colors */
.text-success {
    color: #059669 !important;
}

.text-danger {
    color: #dc2626 !important;
}

.text-warning {
    color: #d97706 !important;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #4C1D95, #6d28d9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

/* Panel Styles */
.panel_s {
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.panel-body {
    padding: 20px;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Chart Container */
#ns_performance_chart {
    max-height: 300px;
    margin: 20px auto;
}

/* Card Styles for Reports */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card i {
    margin-bottom: 12px;
}

.card h4 {
    margin: 12px 0 8px;
    font-size: 16px;
    color: #1f2937;
}

.card p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #4C1D95;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th, .table td {
        padding: 8px 4px;
    }
    
    input[type="number"] {
        width: 55px;
    }
    
    .btn {
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* Dark Mode Support */
body.dark-mode .panel_s,
body.dark-mode .stat-card,
body.dark-mode .card,
body.dark-mode .table {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

body.dark-mode .table th {
    background-color: #0f172a !important;
}

body.dark-mode .table td {
    border-bottom-color: #334155;
}

body.dark-mode .table tr:hover {
    background-color: #334155;
}

body.dark-mode .form-control {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #475569;
}

body.dark-mode .nav-tabs > li > a {
    color: #94a3b8;
}

body.dark-mode .nav-tabs > li.active > a {
    color: #a78bfa;
}

body.dark-mode .stat-label {
    color: #94a3b8;
}
/* ============================================
   ADD THIS TO YOUR CSS FILE
   ============================================ */

/* Pause ALL animations on hidden tabs */
.tab-content:not(.active) * {
    animation-play-state: paused !important;
}

/* Hide spinners in hidden tabs */
.tab-content:not(.active) .loading-spinner,
.tab-content:not(.active) .spinner,
.tab-content:not(.active) .loader {
    display: none !important;
}

/* Program Management Styles */
.program-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.program-badge-krchn {
    background: #dbeafe;
    color: #2563eb;
}
.program-badge-tvet {
    background: #fef3c7;
    color: #d97706;
}
.program-badge-active {
    background: #d1fae5;
    color: #059669;
}
.program-badge-inactive {
    background: #fee2e2;
    color: #dc2626;
}
.program-badge-archived {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}
.btn-edit {
    background: #3b82f6;
    color: white;
}
.btn-edit:hover {
    background: #2563eb;
}
.btn-delete {
    background: #ef4444;
    color: white;
}
.btn-delete:hover {
    background: #dc2626;
}
/* ============================================================
   REPORT CARD BUTTON
   ============================================================ */
.btn-success {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* ============================================================
   ACADEMIC REPORTS - TAB STYLES
   ============================================================ */
.report-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.report-tab {
    padding: 10px 20px;
    border: 2px solid transparent;
    background: white;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.report-tab:hover {
    color: #4C1D95;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.report-tab.active {
    background: #4C1D95;
    color: white;
    border-color: #4C1D95;
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.3);
}

.report-tab i {
    margin-right: 8px;
}

.report-content {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    min-height: 300px;
}

.report-content.active {
    display: block;
}
