/**
 * MONCARNETULM - Styles CSS
 * Design inspiré Air France / carnet.aero
 * Style aéronautique premium
 */

/* ===== Variables CSS ===== */
:root {
    /* Palette Air France */
    --af-navy: #002157;
    --af-navy-light: #003380;
    --af-navy-dark: #001540;
    --af-red: #e4002b;
    --af-red-light: #ff1a45;
    --af-red-dark: #b8001f;
    --af-gold: #c4a35a;
    --af-gold-light: #d4b76a;
    --af-silver: #8c9196;
    
    /* Couleurs principales */
    --primary-color: var(--af-navy);
    --primary-dark: var(--af-navy-dark);
    --primary-light: var(--af-navy-light);
    --primary-gradient: linear-gradient(135deg, var(--af-navy) 0%, var(--af-navy-light) 100%);
    
    --accent-color: var(--af-red);
    --accent-light: var(--af-red-light);
    --accent-gradient: linear-gradient(135deg, var(--af-red) 0%, var(--af-red-light) 100%);
    
    --secondary-color: #0d9488;
    --secondary-light: #14b8a6;
    
    --danger-color: var(--af-red);
    --danger-light: var(--af-red-light);
    --warning-color: #f59e0b;
    --success-color: #059669;
    
    /* Couleurs de fond et surfaces */
    --bg-color: #f0f4f8;
    --bg-subtle: #e8eef4;
    --card-bg: #ffffff;
    --card-hover: #fafbfc;
    
    /* Textes */
    --text-color: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #8896a6;
    --text-inverse: #ffffff;
    
    /* Bordures */
    --border-color: #d1dbe6;
    --border-light: #e8eef4;
    
    /* Header & Footer */
    --header-bg: linear-gradient(180deg, var(--af-navy-dark) 0%, var(--af-navy) 100%);
    --footer-bg: var(--af-navy-dark);
    
    /* Ombres */
    --shadow-xs: 0 1px 2px rgba(0, 33, 87, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 33, 87, 0.08), 0 1px 2px rgba(0, 33, 87, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 33, 87, 0.08), 0 2px 4px -1px rgba(0, 33, 87, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 33, 87, 0.08), 0 4px 6px -2px rgba(0, 33, 87, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 33, 87, 0.1), 0 10px 10px -5px rgba(0, 33, 87, 0.02);
    --shadow-xl: 0 25px 50px -12px rgba(0, 33, 87, 0.2);
    --shadow-glow: 0 0 20px rgba(228, 0, 43, 0.15);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 33, 87, 0.04);
    
    /* Border radius */
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Espacements */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection {
    background: var(--af-navy);
    color: white;
}

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

a:hover {
    color: var(--af-red);
}

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

/* ===== Layout ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.main-content {
    flex: 1;
    padding: var(--space-xl) 0;
}

/* ===== Header Style Air France ===== */
.main-header {
    background: var(--header-bg);
    color: white;
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    padding: var(--space-md) 0;
}

.logo:hover {
    opacity: 0.9;
    color: white;
}

.logo-icon {
    font-size: 1.5rem;
    background: var(--af-red);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text {
    letter-spacing: -0.02em;
    font-weight: 700;
}

.nav-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Navigation principale style aéro */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-lg) var(--space-md);
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    height: 64px;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--af-red);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--af-red);
}

/* Menu utilisateur */
.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

/* Menu hamburger mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Footer Style Air France ===== */
.main-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-xl) 0;
    text-align: center;
    margin-top: auto;
    border-top: 3px solid var(--af-red);
}

.main-footer p {
    font-size: 0.875rem;
}

/* ===== Boutons Style Air France ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

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

.btn-primary {
    background: var(--af-red);
    color: white;
    box-shadow: var(--shadow), 0 4px 12px rgba(228, 0, 43, 0.25);
}

.btn-primary:hover {
    background: var(--af-red-light);
    box-shadow: var(--shadow-md), 0 6px 16px rgba(228, 0, 43, 0.3);
}

.btn-secondary {
    background: var(--af-navy);
    color: white;
}

.btn-secondary:hover {
    background: var(--af-navy-light);
}

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

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--af-navy);
    color: var(--af-navy);
    box-shadow: none;
}

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

.btn-ghost {
    background: transparent;
    box-shadow: none;
    color: var(--text-secondary);
    text-transform: none;
}

.btn-ghost:hover {
    background: var(--bg-subtle);
    color: var(--af-navy);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
    border-radius: var(--radius-xs);
}

.btn-xs {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.6875rem;
    border-radius: var(--radius-xs);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.9375rem;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* ===== Formulaires Modernes ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-color);
    transition: var(--transition);
    appearance: none;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 18px;
    padding-right: 2.5rem;
}

.form-group small {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

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

.form-section {
    background: var(--card-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.form-section h3 {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--bg-subtle);
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--bg-subtle);
}

/* ===== Tables Style Aéro ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.table th,
.table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    background: var(--af-navy);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
}

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

.table tbody tr:nth-child(even) {
    background: #f8fafc;
}

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

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

.table td.actions {
    white-space: nowrap;
    text-align: right;
}

.table td.actions .btn {
    margin-left: var(--space-xs);
}

.table small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: var(--space-xs);
}

/* ===== Cards Style Carnet Aéro ===== */
.card, .stat-card, .detail-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--bg-subtle);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--af-navy);
}

.card-body {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.card-footer {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: var(--space-sm);
}

/* ===== Stats Cards Style Cockpit ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--card-bg);
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--af-navy);
    transition: var(--transition);
    position: relative;
}

.stat-card:hover {
    border-left-color: var(--af-red);
    box-shadow: var(--shadow);
}

.stat-card.large {
    grid-column: span 2;
}

.stat-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    color: var(--af-navy);
}

.stat-content {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--af-navy);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ===== Badges Style Aéro ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-xs);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-local { 
    background: #e0f2fe; 
    color: #0369a1; 
}
.badge-navigation { 
    background: #dcfce7; 
    color: #15803d; 
}
.badge-instruction { 
    background: #fef3c7; 
    color: #b45309; 
}
.badge-voyage { 
    background: #e0e7ff; 
    color: #4338ca; 
}
.badge-bapteme { 
    background: #fce7f3; 
    color: #be185d; 
}

/* ===== Alertes ===== */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    margin-bottom: var(--space-lg);
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    animation: slideInDown 0.3s ease-out;
}

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

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

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: var(--af-red);
}

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

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: var(--af-navy);
}

.alert ul {
    margin: var(--space-sm) 0 0 var(--space-lg);
}

/* ===== Page Elements ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--af-navy);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.page-header h1::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--af-red);
    border-radius: 2px;
}

.section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--bg-subtle);
}

.section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--af-navy);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--bg-subtle);
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
    color: var(--af-navy);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    font-size: 0.9375rem;
}

.summary-bar {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-lg);
    background: var(--af-navy);
    color: white;
    border-radius: var(--radius);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow);
}

.summary-bar span {
    font-weight: 600;
    font-size: 0.875rem;
}

.filters {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    padding: var(--space-lg);
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.filters input,
.filters select {
    max-width: 260px;
    background: var(--bg-subtle);
    border-color: transparent;
}

.filters input:focus,
.filters select:focus {
    background: var(--card-bg);
    border-color: var(--af-navy);
}

/* ===== Quick Actions ===== */
.quick-actions {
    text-align: center;
    margin: var(--space-2xl) 0;
}

.quick-actions .btn {
    font-size: 1rem;
    padding: var(--space-lg) var(--space-2xl);
}

/* ===== Dashboard Welcome ===== */
.dashboard h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: var(--af-navy);
}

/* ===== Detail View ===== */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.detail-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--af-navy);
}

.detail-card h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.detail-card.full-width {
    grid-column: 1 / -1;
}

.detail-card dl {
    display: grid;
    gap: var(--space-md);
}

.detail-card dt {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.detail-card dd {
    font-size: 0.9375rem;
    color: var(--text-color);
    margin-top: 2px;
}

.detail-card dd.highlight {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--af-navy);
}

/* ===== Progress Bar ===== */
.progress-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.progress-bar .progress {
    height: 8px;
    background: var(--af-navy);
    border-radius: var(--radius-full);
    min-width: 20px;
}

.progress-bar span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== Auth Pages (Login/Register) Style Air France ===== */
.auth-page {
    background: var(--af-navy);
    background-image: 
        linear-gradient(135deg, rgba(0, 21, 64, 0.95) 0%, rgba(0, 33, 87, 0.9) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl);
    position: relative;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2xl);
    border-top: 4px solid var(--af-red);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header .auth-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: var(--space-md);
}

.auth-header .logo-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-md);
    background: var(--af-red);
    border-radius: var(--radius);
    color: white;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--af-navy);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

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

.auth-form .btn-primary {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9375rem;
}

.auth-footer {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-footer a {
    font-weight: 600;
    color: var(--af-red);
}

.auth-footer a:hover {
    color: var(--af-red-dark);
}

/* ===== Équipage =====*/
.equipage-membre {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    position: relative;
    transition: var(--transition);
    border-left: 3px solid var(--af-navy);
}

.equipage-membre:hover {
    border-left-color: var(--af-red);
    box-shadow: var(--shadow-sm);
}

.equipage-membre .form-row {
    align-items: flex-end;
    gap: var(--space-md);
}

.equipage-membre .form-group {
    flex: 1;
    margin-bottom: 0;
}

.equipage-membre .btn-danger {
    flex-shrink: 0;
    align-self: center;
    margin-top: var(--space-xl);
}

.section-help {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-subtle);
    border-radius: var(--radius);
    border-left: 3px solid var(--af-navy);
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
}

.suggestion-item {
    padding: var(--space-md);
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--bg-subtle);
}

.suggestion-item strong {
    display: block;
    color: var(--af-navy);
}

.suggestion-item small {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

#equipage-liste:empty + .btn {
    margin-top: 0;
}

/* ===== Vols partagés =====*/
.vols-partages {
    margin-top: var(--space-xl);
}

.vols-partages .vol-card {
    border-left: 4px solid var(--secondary-color);
}

.badge-role {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-xs);
    background: var(--af-navy);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-role.cdb { 
    background: var(--af-navy); 
}
.badge-role.copilote { 
    background: #0d9488; 
}
.badge-role.instructeur { 
    background: #b45309; 
}
.badge-role.eleve { 
    background: #be185d; 
}
.badge-role.passager { 
    background: var(--af-silver); 
}

/* ===== Utilities ===== */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--af-navy); }
.text-accent { color: var(--af-red); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--af-red); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.my-2 { margin-top: var(--space-md); margin-bottom: var(--space-md); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card.large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
    }
    
    .main-header .container {
        flex-wrap: wrap;
        min-height: auto;
        padding-top: var(--space-md);
        padding-bottom: var(--space-md);
    }
    
    .menu-toggle {
        display: flex;
        order: 2;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        background: rgba(0, 15, 40, 0.95);
        margin-top: var(--space-md);
    }
    
    .main-nav.active {
        max-height: 600px;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--space-md) var(--space-lg);
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 3px solid transparent;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link.active,
    .nav-link:hover {
        border-bottom-color: rgba(255, 255, 255, 0.1);
        border-left-color: var(--af-red);
    }
    
    .user-menu {
        order: 1;
        flex: 1;
        justify-content: flex-end;
    }
    
    .user-name {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card.large {
        grid-column: span 2;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .summary-bar {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .table th,
    .table td {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card.large {
        grid-column: span 1;
    }
    
    .stat-card {
        padding: var(--space-md);
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .section,
    .form-section {
        padding: var(--space-md);
    }
    
    .btn-lg {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.875rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== Trace GPS & Carte ===== */
.trace-existante {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-left: 3px solid var(--af-navy);
}

.trace-existante p {
    margin: 0 0 var(--space-md) 0;
    font-weight: 500;
    color: var(--af-navy);
}

.stats-mini {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xs);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    color: var(--af-red);
    font-weight: 500;
    padding: var(--space-sm);
    border-radius: var(--radius-xs);
    transition: var(--transition-fast);
}

.checkbox-label:hover {
    background: rgba(228, 0, 43, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--af-red);
}

/* Form group full width */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* Accompagnant styling */
#accompagnant-row {
    background: #fefce8;
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid #fde047;
    border-left: 3px solid #ca8a04;
    margin: calc(var(--space-sm) * -1) 0 var(--space-md) 0;
}

/* File input styling */
input[type="file"] {
    padding: var(--space-md);
    background: var(--bg-subtle);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

input[type="file"]:hover {
    border-color: var(--af-navy);
    background: #eff6ff;
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--af-navy);
    box-shadow: 0 0 0 3px rgba(0, 33, 87, 0.1);
}

/* File inputs inside upload zone labels are always hidden (label acts as trigger) */
.upload-zone input[type="file"],
.photo-upload-zone input[type="file"] {
    display: none !important;
}

/* Searchable select styling */
.searchable-select {
    max-width: 100%;
}

/* Detail card enhancements */
.detail-card .accompagnant-info {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
}

/* Badge styles enhancement */
.badge.solo { 
    background: var(--success-color); 
    color: white;
}
.badge.dual { 
    background: #b45309; 
    color: white;
}
.badge.cdb { 
    background: var(--af-navy); 
    color: white;
}
.badge.instructeur { 
    background: #7c3aed; 
    color: white;
}

/* Highlight class */
.highlight {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--af-navy);
}

/* ===== Admin Link ===== */
.nav-admin {
    background: var(--af-red) !important;
    border-radius: var(--radius-sm) !important;
    padding: var(--space-sm) var(--space-md) !important;
    font-size: 1rem;
    border-bottom: none !important;
    height: auto !important;
}

.nav-admin:hover {
    background: var(--af-red-light) !important;
    transform: scale(1.02);
}

/* ===== Modal Moderne ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.fade .modal-dialog {
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    margin: 1.75rem auto;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    outline: 0;
}

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

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    position: relative;
    padding: var(--space-xl);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.btn-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close::before {
    content: '×';
}

.btn-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--text-color);
}

/* ===== Partage Social ===== */
.share-url-box {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.share-url-box input {
    flex: 1;
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--bg-subtle);
    font-family: monospace;
}

.share-url-box input:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.share-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c8de4 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0a66c2 0%, #084f94 100%);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

/* ===== Loading & Skeleton ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-color) 50%, var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Tooltips ===== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: var(--space-sm) var(--space-md);
    background: var(--text-color);
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* ===== Photo Gallery ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.photo-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}

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

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay span {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== Liste des Vols - Interface Moderne ===== */
.vols-hero {
    background: var(--header-bg);
    margin: calc(var(--space-xl) * -1) calc(var(--space-xl) * -1) var(--space-md);
    padding: var(--space-md) var(--space-xl);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    position: sticky;
    top: var(--header-height, 60px);
    z-index: 51;
}

.vols-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.vols-hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.vols-hero-text h1 {
    color: white;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.vols-hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin: 2px 0 0;
    font-size: 0.85rem;
}

.btn-accent {
    background: var(--af-red);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(228, 0, 43, 0.3);
}

.btn-accent:hover {
    background: var(--af-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(228, 0, 43, 0.4);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

.vols-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vol-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.vol-stat-icon {
    font-size: 0.9rem;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
}

.vol-stat-content {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.vol-stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.vol-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Toolbar */
.vols-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: var(--toolbar-sticky-top, 120px);
    z-index: 50;
}

.vols-search-box {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    max-width: 400px;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    padding: 0 var(--space-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.vols-search-box:focus-within {
    border-color: var(--af-navy);
    box-shadow: 0 0 0 3px rgba(0, 33, 87, 0.1);
}

.search-icon {
    opacity: 0.5;
}

.vols-search-input {
    border: none;
    background: transparent;
    padding: var(--space-sm) 0;
    flex: 1;
    font-size: 0.9375rem;
    outline: none;
}

.vols-filters {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.vols-filter-select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg);
    font-size: 0.9375rem;
    cursor: pointer;
}

.vols-view-toggle {
    display: flex;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    padding: 2px;
    border: 1px solid var(--border-color);
}

.view-btn {
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.view-btn.active {
    background: var(--card-bg);
    opacity: 1;
    box-shadow: var(--shadow-xs);
}

.view-btn:hover {
    opacity: 0.8;
}

/* Vue Cards */
.vols-cards-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--space-lg);
}

.vol-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.vol-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--af-navy);
}

.vol-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border-light);
}

.vol-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--af-navy);
    color: white;
    min-width: 56px;
    padding: var(--space-sm);
    border-radius: var(--radius);
    text-align: center;
}

.vol-day {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1;
}

.vol-month {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.vol-year {
    font-size: 0.625rem;
    opacity: 0.7;
}

.vol-aircraft {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vol-immat {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    font-family: monospace;
}

.vol-model {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.vol-type-badge {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vol-type-badge.badge-local { background: #dbeafe; color: #1e40af; }
.vol-type-badge.badge-nav { background: #d1fae5; color: #065f46; }
.vol-type-badge.badge-voyage { background: #fce7f3; color: #9d174d; }
.vol-type-badge.badge-instruction { background: #fef3c7; color: #92400e; }

/* Route Section */
.vol-card-route {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    gap: var(--space-md);
}

.vol-airport {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.vol-departure { align-items: flex-start; text-align: left; }
.vol-arrival { align-items: flex-end; text-align: right; }

.vol-oaci {
    font-size: 1rem;
    font-weight: 800;
    color: var(--af-navy);
    font-family: monospace;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Codes ULM plus longs (LFxxxx) */
.vol-oaci.ulm-code {
    font-size: 0.9rem;
    letter-spacing: 0;
}

.vol-airport-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vol-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.vol-route-line {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 60px;
}

.route-plane {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    z-index: 1;
    background: var(--card-bg);
    padding: 0 var(--space-xs);
}

.route-dash {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--border-color) 0,
        var(--border-color) 6px,
        transparent 6px,
        transparent 10px
    );
}

/* Footer */
.vol-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
}

.vol-card-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.vol-stat strong {
    color: var(--af-navy);
}

.vol-role {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.vol-card-actions {
    display: flex;
    gap: var(--space-xs);
}

.vol-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.vol-action-btn:hover {
    background: var(--af-navy);
    border-color: var(--af-navy);
    color: white;
    transform: scale(1.05);
}

.vol-action-delete:hover {
    background: var(--af-red);
    border-color: var(--af-red);
}

/* Table View */
.table-vols {
    font-size: 0.9375rem;
}

.table-vols td {
    vertical-align: middle;
}

.route-compact {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: monospace;
}

.route-arrow {
    color: var(--text-muted);
}

.text-muted {
    color: var(--text-muted);
    display: block;
    font-size: 0.8125rem;
}

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

.actions-compact {
    display: flex;
    gap: var(--space-xs);
    justify-content: flex-end;
}

.btn-icon-only {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-icon-only:hover {
    background: var(--af-navy);
    color: white;
    border-color: var(--af-navy);
}

.btn-icon-danger:hover {
    background: var(--af-red);
    border-color: var(--af-red);
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 2px dashed var(--border-color);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.empty-state-modern h3 {
    color: var(--text-color);
    margin-bottom: var(--space-sm);
}

.empty-state-modern p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .vols-hero {
        margin: calc(var(--space-md) * -1) calc(var(--space-md) * -1) var(--space-sm);
        padding: var(--space-sm) var(--space-md);
    }
    
    .vols-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .vols-stats-grid {
        gap: 4px;
    }

    .vol-stat-card {
        padding: 3px 8px;
    }

    .vol-stat-value {
        font-size: 0.8rem;
    }

    .vol-stat-label {
        font-size: 0.6rem;
    }
    
    .vols-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vols-search-box {
        max-width: 100%;
    }
    
    .vols-filters {
        justify-content: space-between;
    }
    
    .vols-cards-view {
        grid-template-columns: 1fr;
    }
    
    .vol-card-route {
        flex-wrap: wrap;
    }
    
    .vol-route-line {
        order: -1;
        width: 100%;
        margin-bottom: var(--space-sm);
    }
    
    .vol-airport {
        flex: 0 0 45%;
    }
}

/* ===== Print Styles ===== */
@media print {
    .main-header,
    .main-footer,
    .btn,
    .quick-actions,
    .nav-link,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .main-content {
        padding: 0;
    }
    
    .card, .section, .stat-card, .detail-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ===== Site Footer ===== */
.site-footer {
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-subtle);
}

.site-footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

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

.site-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
}

.footer-links span,
.footer-links a {
    white-space: nowrap;
}

