/* =====================================================
   LEJURRRA - MODERN DESIGN SYSTEM
   ===================================================== */

/* CSS Variables - Modern Color Palette */
:root {
    /* Brand Colors */
    --primary: #DC2626;
    --primary-dark: #991B1B;
    --primary-light: #FEE2E2;
    
    /* Neutral Colors */
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #E5E5E5;
    --neutral-300: #D4D4D4;
    --neutral-400: #A3A3A3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* =====================================================
   GLOBAL RESET & BASE STYLES
   ===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-800);
    background: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =====================================================
   ACCESSIBILITY & FOCUS STATES
   ===================================================== */

/* Modern focus ring for all interactive elements */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile menu scroll lock */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Smooth scroll with offset for fixed header */
html {
    scroll-padding-top: 80px;
}

[id] {
    scroll-margin-top: 80px;
}

/* =====================================================
   CONTAINER & LAYOUT
   ===================================================== */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* =====================================================
   HEADER - MODERN DESIGN
   ===================================================== */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
}

.logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.logo-link:hover {
    transform: scale(1.05);
}

.header-logo {
    height: 45px;
    width: auto;
}

/* Search Bar */
.header-search {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    font-size: 15px;
    transition: all 0.3s;
    background: var(--neutral-50);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--neutral-400);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-link {
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    color: var(--neutral-700);
}

.nav-link:hover {
    background: var(--neutral-100);
    color: var(--primary);
}

.admin-link {
    color: var(--primary);
    background: var(--primary-light);
}

.admin-link:hover {
    background: var(--primary);
    color: white;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 8px 16px;
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
}

.user-name {
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 15px;
}

/* =====================================================
   BUTTONS - MODERN SYSTEM
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: var(--neutral-100);
    color: var(--neutral-700);
    border: 2px solid var(--neutral-200);
}

.btn-secondary:hover {
    background: var(--neutral-200);
    border-color: var(--neutral-300);
}

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-3xl) 0;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M50 0v100M0 50h100" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: var(--spacing-xl);
}

/* =====================================================
   FILTERS - MODERN DESIGN
   ===================================================== */

.filters-container {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-2xl);
}

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

.filters-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.search-box {
    margin-bottom: var(--spacing-lg);
}

.search-box input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.3s;
    background: var(--neutral-50);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box input::placeholder {
    color: var(--neutral-400);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--neutral-700);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-group select:hover {
    border-color: var(--neutral-300);
}

.filter-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--neutral-200);
}

.filter-actions button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-apply-filters {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-reset-filters {
    background: var(--neutral-100);
    color: var(--neutral-700);
    border: 2px solid var(--neutral-200);
}

.btn-reset-filters:hover {
    background: var(--neutral-200);
    border-color: var(--neutral-300);
}

/* Active Filters Tags */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--neutral-50);
    border-radius: var(--radius-md);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-700);
    box-shadow: var(--shadow-sm);
}

.filter-tag .remove {
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.filter-tag .remove:hover {
    background: var(--primary);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-2xl);
}

.empty-state p {
    font-size: 20px;
    color: var(--neutral-600);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.empty-state .btn {
    margin: 0 var(--spacing-sm);
}

/* Results Summary */
.results-summary {
    padding: var(--spacing-md) var(--spacing-lg);
    background: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    font-size: 15px;
}

/* Responsive Filters */
@media (max-width: 768px) {
    .filter-toggle {
        display: block;
    }
    
    .filters-content {
        display: none;
    }
    
    .filters-content.show {
        display: block;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions button {
        width: 100%;
    }
}

/* =====================================================
   EVENTS GRID - SPACIOUS DESIGN
   ===================================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   EVENT CARD - MODERN DESIGN
   ===================================================== */

.event-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.event-image-container,
.event-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.event-image img,
.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.event-card:hover .event-image img,
.event-card:hover .event-image-container img {
    transform: scale(1.1);
}

.event-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--shadow-md);
}

.event-content {
    padding: var(--spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-category,
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    width: fit-content;
    box-shadow: var(--shadow-sm);
}

.event-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-description {
    color: var(--neutral-600);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--neutral-200);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--neutral-600);
    font-size: 14px;
}

.meta-icon,
.meta-item .icon {
    font-size: 18px;
    color: var(--primary);
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-footer {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.event-footer .btn {
    flex: 1;
}

/* =====================================================
   PAGINATION
   ===================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-3xl) 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a {
    background: white;
    color: var(--neutral-700);
    border: 2px solid var(--neutral-200);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

/* =====================================================
   STATS CARDS
   ===================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.stat-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.stat-label {
    color: var(--neutral-600);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   BADGES
   ===================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-error {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-featured {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
}

/* =====================================================
   FORMS - COMPREHENSIVE STYLES
   ===================================================== */

/* Form Groups */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--neutral-700);
    font-size: 15px;
}

.form-group label.required::after {
    content: " *";
    color: var(--primary);
}

/* Form Inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--neutral-300);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* File Input */
.form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed var(--neutral-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* Checkbox & Radio */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

/* Form Help Text */
.form-help {
    font-size: 13px;
    color: var(--neutral-500);
    margin-top: var(--spacing-xs);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--neutral-200);
}

.form-actions .btn {
    flex: 1;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
}

/* =====================================================
   AUTH PAGES - LOGIN/REGISTER
   ===================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-xl);
}

.auth-box {
    background: white;
    padding: var(--spacing-3xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
}

.auth-box .logo-container {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-box .logo {
    height: 60px;
    width: auto;
}

.auth-box h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.auth-box .form-group {
    margin-bottom: var(--spacing-lg);
}

.auth-box .btn {
    width: 100%;
    margin-top: var(--spacing-md);
}

.auth-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--neutral-200);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =====================================================
   ALERTS & MESSAGES
   ===================================================== */

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    font-size: 15px;
    font-weight: 500;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert::before {
    font-size: 20px;
    line-height: 1;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-color: #10B981;
}

.alert-success::before {
    content: "✓";
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #EF4444;
}

.alert-error::before {
    content: "✕";
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-color: #F59E0B;
}

.alert-warning::before {
    content: "⚠";
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-color: #3B82F6;
}

.alert-info::before {
    content: "ℹ";
}

/* =====================================================
   PAGE HEADER
   ===================================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--neutral-200);
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--neutral-900);
}

.page-header .actions {
    display: flex;
    gap: var(--spacing-md);
}

/* View Toggle (Liste / Calendrier) */
.view-toggle {
    display: flex;
    gap: var(--spacing-xs);
    background: var(--neutral-100);
    padding: 4px;
    border-radius: var(--radius-md);
}

.view-toggle a {
    padding: 10px 24px;
    background: transparent;
    color: var(--neutral-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
}

@media (prefers-reduced-motion: no-preference) {
    .view-toggle a {
        transition: all var(--transition-base);
    }
}

.view-toggle a:hover {
    color: var(--primary);
}

.view-toggle a.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.view-toggle a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .page-header .actions {
        width: 100%;
    }
    
    .page-header .btn {
        flex: 1;
    }
    
    .view-toggle {
        width: 100%;
    }
    
    .view-toggle a {
        flex: 1;
        text-align: center;
    }
}

/* =====================================================
   FORM CONTAINERS
   ===================================================== */

.form-container {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-2xl);
}

.form-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--neutral-200);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
    background: var(--neutral-900);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--neutral-400);
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--neutral-800);
    color: var(--neutral-400);
    font-size: 14px;
}

/* =====================================================
   RESPONSIVE - MOBILE
   ===================================================== */

@media (max-width: 768px) {
    .header-content {
        padding: var(--spacing-md);
    }
    
    .header-search {
        display: none;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-xl);
        transition: left 0.3s;
        z-index: 1001;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-link {
        padding: var(--spacing-md);
    }
    
    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }
    
    .burger-line {
        width: 24px;
        height: 3px;
        background: var(--neutral-800);
        border-radius: 2px;
        transition: all 0.3s;
    }
    
    .burger-menu.active .burger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active .burger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .auth-box {
        padding: var(--spacing-xl);
    }
    
    .form-container {
        padding: var(--spacing-lg);
    }
}

@media (min-width: 769px) {
    .burger-menu {
        display: none;
    }
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: right;
    margin-bottom: var(--spacing-lg);
}

.forgot-password-link a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Auth Box Buttons Full Width */
.auth-box .btn {
    width: 100%;
}
