/* ═══════════════════════════════════════════════════════════════════
   GLOBAL STYLES - CERTACE ELECTRIC BLUE THEME
   CertAce - Professional IT Certification Training
   ═══════════════════════════════════════════════════════════════════ */

/* LOCAL FONTS - DM Sans style using Source Sans (offline) */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/static/fonts/source-sans-3-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/static/fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/static/fonts/source-sans-3-latin-700-normal.woff2') format('woff2');
}

/* CSS VARIABLES - CERTACE ELECTRIC BLUE DESIGN SYSTEM */
:root {
    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Primary Colors - Electric Blue */
    --blue-900: #020617;
    --blue-800: #0F172A;
    --blue-700: #1E293B;
    --blue-600: #334155;
    --blue-500: #2563EB;
    --blue-400: #3B82F6;
    --blue-300: #60A5FA;
    --blue-200: #93C5FD;
    --blue-100: #DBEAFE;
    
    /* Accent Colors - Green */
    --accent: #22C55E;
    --accent-light: #4ADE80;
    --accent-dark: #16A34A;
    --accent-pale: #DCFCE7;
    
    /* Secondary - Cyan */
    --cyan: #06B6D4;
    --cyan-light: #22D3EE;
    --cyan-dark: #0891B2;
    
    /* Warning - Amber */
    --warning: #F59E0B;
    --warning-light: #FCD34D;
    --warning-dark: #D97706;
    --warning-pale: #FEF3C7;
    
    /* Semantic Colors */
    --success: #22C55E;
    --success-light: #DCFCE7;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Legacy color mappings (backward compatibility) */
    --navy-900: var(--blue-900);
    --navy-800: var(--blue-800);
    --navy-700: var(--blue-700);
    --navy-600: var(--blue-600);
    --navy-500: var(--blue-500);
    --navy-400: var(--blue-400);
    --navy-300: var(--blue-300);
    
    --gold: var(--accent);
    --gold-light: var(--accent-light);
    --gold-dark: var(--accent-dark);
    --gold-pale: var(--accent-pale);
    
    --primary-blue: var(--blue-500);
    --primary-blue-dark: var(--blue-600);
    --primary-blue-darker: var(--blue-800);
    --secondary-blue: var(--blue-400);
    --accent-gold: var(--accent);
    --accent-green: var(--success);
    --accent-green-dark: #16A34A;
    --accent-green-darker: #15803D;
    --accent-orange: var(--warning);
    --accent-orange-dark: var(--warning-dark);
    --accent-red: var(--error);
    --silver: var(--gray-400);
    
    /* Card Styling */
    --card-bg: var(--blue-700);
    --card-border-radius: 12px;
    --card-border-width: 1px;
    --card-border-color: rgba(59, 130, 246, 0.15);
    --card-padding: 28px;
    --card-padding-large: 36px;
    
    /* Shadows - Blue tinted */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-base: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 8px 30px rgba(37, 99, 235, 0.25);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.3);
    
    /* Typography */
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 15px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 28px;
    --font-size-5xl: 32px;
    --font-size-6xl: 40px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY DEFAULTS */
body {
    font-family: var(--font-family);
    color: var(--gray-100);
    line-height: 1.6;
    background: var(--blue-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Grid Pattern */
.bg-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Background Glow */
.bg-glow {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   MAIN HEADER - CERTACE STYLE
   ═══════════════════════════════════════════════════════════════════ */

.main-header {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    padding: 0 48px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-emblem {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.logo-text {
    color: var(--white);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--blue-400);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-nav-link {
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.header-nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.header-nav-link.active {
    color: var(--blue-400);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 24px;
    margin-left: 16px;
    border-left: 1px solid var(--blue-700);
    position: relative;
}

.header-user-info {
    text-align: right;
}

.header-user-name {
    font-size: var(--font-size-base);
    color: var(--white);
    font-weight: 500;
    line-height: 1.3;
}

.header-user-role {
    font-size: var(--font-size-xs);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-avatar {
    width: 36px;
    height: 36px;
    background: var(--blue-600);
    border: 2px solid var(--blue-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.header-avatar:hover {
    border-color: var(--cyan);
    background: var(--blue-500);
}

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

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--blue-700);
    border: 1px solid var(--blue-600);
    border-radius: 8px;
    min-width: 200px;
    width: max-content;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    display: none;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.user-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--blue-600);
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.user-dropdown-email {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
}

.user-dropdown-menu {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
    white-space: nowrap;
}

.user-dropdown-item:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--white);
}

.user-dropdown-item-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--blue-600);
    margin: 8px 0;
}

.user-dropdown-item.logout {
    color: #ef4444;
}

.user-dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════════════════════════════════ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--blue-800);
    border-top: 1px solid var(--blue-600);
    padding: 1rem 2rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text p {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--blue-400);
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.cookie-btn-accept {
    background: var(--blue-500);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--blue-400);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--gray-400);
    border: 1px solid var(--blue-600);
}

.cookie-btn-decline:hover {
    background: var(--blue-700);
    color: var(--gray-300);
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */

.page-hero {
    background: linear-gradient(180deg, var(--blue-800) 0%, var(--blue-900) 100%);
    padding: 48px;
    text-align: center;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-400);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
}

.page-hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
}

.page-hero-title span {
    color: var(--blue-400);
}

.page-hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-400);
    position: relative;
}

.page-hero-compact {
    padding: 32px 48px;
}

.page-hero-compact .page-hero-title {
    font-size: var(--font-size-4xl);
    margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTAINER WIDTHS
   ═══════════════════════════════════════════════════════════════════ */

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.container-sm { max-width: 900px; }
.container-md { max-width: 1100px; }
.container-lg { max-width: 1400px; }
.container-xl { max-width: 1600px; }

/* ═══════════════════════════════════════════════════════════════════
   SECTION STYLES
   ═══════════════════════════════════════════════════════════════════ */

.section-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--blue-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--blue-600), transparent);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-400);
    margin-bottom: var(--space-xl);
}

/* ═══════════════════════════════════════════════════════════════════
   CARD STYLES
   ═══════════════════════════════════════════════════════════════════ */

.card {
    background: var(--blue-700);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--card-padding);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--white);
}

.card-body {
    color: var(--gray-300);
}

/* Stat Cards */
.stat-card {
    background: var(--blue-700);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue-500);
    box-shadow: var(--shadow-hover);
}

.stat-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-card-value {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--blue-400);
    margin-bottom: 6px;
}

.stat-card-label {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTON STYLES
   ═══════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

.btn-sm { padding: 8px 16px; font-size: var(--font-size-sm); }
.btn-lg { padding: 16px 32px; font-size: var(--font-size-lg); }
.btn-xl { padding: 18px 40px; font-size: var(--font-size-xl); border-radius: var(--radius-xl); }

.btn-primary {
    background: var(--blue-500);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--blue-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

.btn-secondary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-300);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--blue-500);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--blue-400);
    border-color: var(--blue-500);
}

.btn-outline:hover {
    background: var(--blue-500);
    color: var(--white);
}

.btn-warning {
    background: var(--warning);
    color: var(--blue-900);
}

.btn-warning:hover {
    background: var(--warning-light);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

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

/* ═══════════════════════════════════════════════════════════════════
   FORM STYLES
   ═══════════════════════════════════════════════════════════════════ */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--blue-600);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--white);
    background: var(--blue-800);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-input::placeholder {
    color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════ */

.progress-bar {
    height: 8px;
    background: var(--blue-700);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill-primary {
    background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
}

.progress-fill-gold,
.progress-fill-accent {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.progress-fill-navy,
.progress-fill-blue {
    background: var(--blue-500);
}

.progress-fill-success {
    background: var(--success);
}

.progress-fill-warning {
    background: var(--warning);
}

/* ═══════════════════════════════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════════════════════════════ */

.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-message.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-light);
    border: 1px solid var(--accent);
}

.flash-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    border: 1px solid var(--error);
}

.flash-message.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-light);
    border: 1px solid var(--warning);
}

.flash-message.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-300);
    border: 1px solid var(--blue-500);
}

/* ═══════════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════════ */

.table-container {
    background: var(--blue-700);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--blue-800);
    padding: 14px 18px;
    text-align: left;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
}

.table tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

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

/* ═══════════════════════════════════════════════════════════════════
   BADGES & TAGS
   ═══════════════════════════════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.badge-primary {
    background: rgba(37, 99, 235, 0.2);
    color: var(--blue-300);
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-light);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-light);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-navy, .text-blue { color: var(--blue-400); }
.text-gold, .text-accent { color: var(--accent); }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-white { color: var(--white); }

.bg-navy, .bg-blue { background: var(--blue-800); }
.bg-gold, .bg-accent { background: var(--accent); }
.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-100); }
.bg-dark { background: var(--blue-900); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ═══════════════════════════════════════════════════════════════════
   LEGACY STYLES (backward compatibility)
   ═══════════════════════════════════════════════════════════════════ */

.page-header {
    background: linear-gradient(180deg, var(--blue-800) 0%, var(--blue-900) 100%);
    padding: var(--space-2xl) var(--space-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    color: var(--white);
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
}

.page-header p {
    font-size: var(--font-size-lg);
    color: var(--gray-400);
    position: relative;
}

.user-info-box {
    position: absolute;
    top: 16px;
    right: var(--space-xl);
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--blue-700);
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 10;
}

.user-greeting {
    font-weight: 500;
    color: var(--white);
    font-size: var(--font-size-sm);
}

.nav-link {
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-xs);
    text-decoration: none;
    transition: all var(--transition-fast);
    color: var(--white);
}

.admin-link {
    background: var(--blue-500);
    color: var(--white);
}

.admin-link:hover {
    background: var(--blue-400);
}

.profile-link {
    background: var(--blue-600);
    color: var(--white);
}

.profile-link:hover {
    background: var(--blue-500);
}

.logout-link {
    background: var(--blue-600);
    color: var(--gray-400);
}

.logout-link:hover {
    background: var(--blue-500);
    color: var(--white);
}

.dashboard-link {
    background: var(--accent);
    color: var(--white);
}

.dashboard-link:hover {
    background: var(--accent-light);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1400px) {
    .container-xl, .container-lg { max-width: 1200px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1200px) {
    .main-header { padding: 0 24px; }
    .container { padding-left: var(--space-lg); padding-right: var(--space-lg); }
    .page-header, .page-hero { padding: var(--space-xl) var(--space-lg); }
    .page-header h1, .page-hero-title { font-size: var(--font-size-4xl); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-header { padding: 0 16px; height: 60px; }
    .header-nav { display: none; }
    .header-user { border-left: none; padding-left: 0; margin-left: 0; }
    .container { padding-left: var(--space-md); padding-right: var(--space-md); }
    .page-header h1, .page-hero-title { font-size: var(--font-size-3xl); }
    .section-title { font-size: var(--font-size-2xl); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .user-info-box { position: static; margin-bottom: var(--space-lg); justify-content: center; }
    .btn-lg { padding: 14px 32px; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.site-footer {
    padding: 2.5rem 2rem;
    background: var(--blue-900);
    border-top: 1px solid var(--blue-700);
    margin-top: auto;
}

.site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer p {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .site-footer .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
}
