/* ============================================
   DEKLARIA - Modern Professional Design System
   Financial Trust Theme - IBM Plex Sans Typography
   Clean, Accessible, Consistent
   ============================================ */

/* IBM Plex Sans - Professional Fintech Typography */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Light Theme Colors - Modern Professional */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-elevated: #F1F5F9;
    --bg-hover: #FAF5FF;

    /* Modern Brand Colors - Indigo-Violet Theme */
    --accent-primary: #6366F1;
    --accent-primary-dark: #4F46E5;
    --accent-primary-light: #818CF8;
    --accent-secondary: #10B981;
    --accent-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);

    /* Status Colors */
    --success: #10B981;
    --success-bg: #D1FAE5;
    --success-border: #6EE7B7;
    --warning: #F97316;
    --warning-bg: #FFF7ED;
    --warning-border: #FDBA74;
    --danger: #EF4444;
    --danger-bg: #FEE2E2;
    --danger-border: #FCA5A5;
    --info: #06B6D4;
    --info-bg: #CFFAFE;
    --info-border: #67E8F9;

    /* Text Colors - Enhanced Contrast */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Borders & Dividers */
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --border-focus: #818CF8;

    /* Shadows - Soft UI Evolution */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Border Radius - Consistent System */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

main {
    flex: 1;
    padding-top: var(--space-xl);
}

/* Skip to Main Content - Accessibility */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 600;
}

.skip-to-main:focus {
    top: var(--space-sm);
    left: var(--space-sm);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-primary-dark);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar-brand:hover {
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.navbar-brand i {
    color: var(--accent-primary);
    font-size: 1.75rem;
}

.deklaria-logo-small {
    height: 40px;
    width: auto;
    transition: transform var(--transition-base);
}

.navbar-brand:hover .deklaria-logo-small {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md) !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--accent-primary) !important;
    background: var(--bg-hover);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active {
    color: var(--accent-primary) !important;
    font-weight: 600;
}

.nav-link i {
    margin-right: var(--space-xs);
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.navbar-toggler:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dropdown-menu {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    min-width: 220px;
    margin-top: var(--space-xs);
}

.dropdown-item {
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    transform: translateX(4px);
}

.dropdown-item i {
    width: 20px;
    margin-right: var(--space-xs);
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: var(--space-xs) 0;
}

/* ============================================
   BOOTSTRAP PRIMARY COLOR OVERRIDES
   ============================================ */
/* Override Bootstrap's default primary color globally */
.text-primary {
    color: var(--accent-primary) !important;
}

.bg-primary {
    background-color: var(--accent-primary) !important;
}

.border-primary {
    border-color: var(--accent-primary) !important;
}

.link-primary {
    color: var(--accent-primary) !important;
}

.link-primary:hover {
    color: var(--accent-primary-dark) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    cursor: pointer;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.btn-primary, .btn-primary-custom {
    background: var(--accent-gradient) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.btn-primary:hover, .btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
    color: white !important;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%) !important;
}

.btn-primary:active, .btn-primary-custom:active {
    transform: translateY(0);
}

.btn-outline-primary {
    background: transparent !important;
    border: 2px solid var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

.btn-outline-primary:hover {
    background: var(--accent-primary) !important;
    color: white !important;
    border-color: var(--accent-primary) !important;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

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

.btn-warning {
    background: var(--warning);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

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

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Icon Buttons */
.btn i {
    font-size: 1.1em;
}

/* Button Groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--radius-sm);
    border-bottom-left-radius: var(--radius-sm);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

/* Deklaria Branded Buttons */
.btn-deklaria-primary {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    border: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
}

.btn-deklaria-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
    color: white;
}

.btn-deklaria-success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    border: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
}

.btn-deklaria-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card, .deklaria-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover, .deklaria-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary-light);
}

.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg) var(--space-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: var(--space-xl);
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.card-subtitle {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-lg) var(--space-xl);
}

/* Hover lift effect for cards */
.hover-lift {
    transition: all var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl) !important;
}

/* Feature Cards with Icons */
.feature-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    height: 100%;
}

.feature-card .icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
    transition: all var(--transition-base);
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.feature-card h5 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section .display-1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.hero-section .display-4 {
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

.hero-section .lead {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    position: relative;
    line-height: 1.7;
}

/* ============================================
   FORMS
   ============================================ */
.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--space-xs);
    display: block;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-control, .form-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'IBM Plex Sans', sans-serif;
    transition: all var(--transition-fast);
    width: 100%;
}

.form-control:hover, .form-select:hover {
    border-color: var(--accent-primary-light);
}

.form-control:focus, .form-select:focus {
    background: var(--bg-primary);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled, .form-select:disabled {
    background: var(--bg-elevated);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.input-group-text {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Checkbox and Radio */
.form-check-input {
    border-color: var(--border-color);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-check-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.form-check-label {
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 400;
}

/* File Input */
input[type="file"] {
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

input[type="file"]:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.02);
}

/* Form Validation */
.is-invalid {
    border-color: var(--danger) !important;
}

.is-valid {
    border-color: var(--success) !important;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.valid-feedback {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

/* Auth Container */
.auth-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
}

.auth-container h2 {
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.auth-container .subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    color: var(--text-primary);
    width: 100%;
}

.table thead {
    background: var(--bg-secondary);
}

.table thead th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: var(--space-md) var(--space-lg);
    border: none;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

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

.table td {
    padding: var(--space-md) var(--space-lg);
    vertical-align: middle;
    border: none;
    color: var(--text-secondary);
}

.table-responsive {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.badge.bg-success {
    background: var(--success-bg) !important;
    color: var(--success) !important;
}

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

.badge.bg-warning {
    background: var(--warning-bg) !important;
    color: #92400E !important;
}

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

.badge.bg-primary {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--accent-primary) !important;
}

.badge.bg-secondary {
    background: var(--bg-elevated) !important;
    color: var(--text-secondary) !important;
}

.deklaria-badge-success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.9rem;
    display: inline-block;
    font-weight: 600;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border: 1px solid;
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: #065F46;
}

.alert-success i {
    color: var(--success);
}

.alert-danger {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: #991B1B;
}

.alert-danger i {
    color: var(--danger);
}

.alert-warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: #92400E;
}

.alert-warning i {
    color: var(--warning);
}

.alert-info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: #1E40AF;
}

.alert-info i {
    color: var(--info);
}

.custom-alert {
    animation: slideDown 0.3s ease;
}

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

.btn-close {
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.btn-close:hover {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: auto;
}

.footer p, .footer a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--accent-primary);
}

.footer h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

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

.footer ul li {
    margin-bottom: var(--space-xs);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    height: 0.75rem;
    overflow: hidden;
}

.progress-bar {
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg) var(--space-xl);
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body {
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--space-lg) var(--space-xl);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
    border: 3px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat Icons */
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    color: var(--accent-primary);
}

.stat-icon-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
    color: var(--success);
}

.stat-icon-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    color: var(--warning);
}

.stat-icon-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(252, 165, 165, 0.05) 100%);
    color: var(--danger);
}

/* Highlight Boxes */
.highlight-box {
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid var(--accent-primary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    margin: var(--space-lg) 0;
}

.highlight-box-success {
    background: var(--success-bg);
    border-left-color: var(--success);
}

.highlight-box-warning {
    background: var(--warning-bg);
    border-left-color: var(--warning);
}

.highlight-box-danger {
    background: var(--danger-bg);
    border-left-color: var(--danger);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: white;
    padding: var(--space-lg) 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideUpBanner 0.5s ease;
}

.cookie-consent-banner h6 {
    color: white;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.cookie-consent-banner p {
    margin-bottom: 0;
    opacity: 0.95;
}

.cookie-consent-banner .btn-light {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
}

.cookie-consent-banner .btn-light:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cookie-consent-banner .btn-success {
    background: var(--success);
    border: none;
    font-weight: 600;
}

.cookie-consent-banner .btn-success:hover {
    background: #059669;
}

.cookie-consent-banner a {
    color: white;
    text-decoration: underline;
}

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

#cookiePreferencesModal .form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

#cookiePreferencesModal .form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

.scale-in {
    animation: scaleIn 0.3s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }

    .hero-section {
        padding: var(--space-2xl) var(--space-lg);
    }

    .hero-section .display-1 {
        font-size: 2.5rem;
    }

    .hero-section .display-4 {
        font-size: 1.75rem;
    }

    .auth-container {
        padding: var(--space-xl);
        margin: var(--space-md);
    }

    .card-body {
        padding: var(--space-lg);
    }

    .navbar-collapse {
        background: var(--bg-card);
        padding: var(--space-md);
        border-radius: var(--radius-md);
        margin-top: var(--space-md);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .hero-section .display-1 {
        font-size: 2rem;
    }

    .card-body {
        padding: var(--space-md);
    }

    .table {
        font-size: 0.85rem;
    }

    .table thead th,
    .table td {
        padding: var(--space-sm) var(--space-md);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .footer,
    .cookie-consent-banner,
    .btn,
    .modal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */
/* Focus Visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-secondary: #000;
    }
}
