/* Cornwall Air Ambulance Tracker - Professional Medical Theme */

:root {
    --primary-color: #1E3A8A;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --secondary-color: #06B6D4;
    --secondary-dark: #0891B2;
    --accent-color: #ffffff;
    --dark-color: #1F2937;
    --light-gray: #F9FAFB;
    --medium-gray: #E5E7EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --gradient-1: linear-gradient(135deg, #1E3A8A 0%, #06B6D4 100%);
    --gradient-2: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    --gradient-3: linear-gradient(135deg, #06B6D4 0%, #67E8F9 100%);
    --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    --gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #67E8F9 100%);
    --gradient-bg: linear-gradient(135deg, #F9FAFB 0%, #E0F2FE 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--gradient-bg);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Glassmorphism */
.navbar {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
    padding: 3rem 0;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
    animation: fadeInDown 0.6s ease-out;
}

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

.page-header h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

/* Aircraft Grid */
.aircraft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

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

.aircraft-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aircraft-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.3);
}

.aircraft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.aircraft-header h3 {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.status-badge {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.status-badge.airborne {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.status-badge.on-call {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulseOnCall 1.5s infinite;
}

@keyframes pulseOnCall {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.status-badge.grounded {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

/* Status badges for stale data states */
.status-badge.landed {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.status-badge.signal-lost {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    animation: pulseWarning 2s ease-in-out infinite;
}

@keyframes pulseWarning {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(239, 68, 68, 0.7);
    }
}

/* Live indicator badge */
.live-indicator {
    font-size: 0.7rem;
    font-weight: 700;
    background: #22c55e;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    display: inline-block;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Data freshness indicator dots */
.freshness-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: dotPulse 2s ease-in-out infinite;
}

.freshness-dot.live {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.freshness-dot.recent {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.freshness-dot.stale {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: dotPulseWarning 1s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

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

/* Stale data styling for values */
.stale-data {
    opacity: 0.5;
    color: #6c757d !important;
    font-style: italic;
    position: relative;
}

.stale-data-warning::after {
    content: ' (STALE)';
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 700;
    margin-left: 0.3rem;
    font-style: normal;
}

/* Landed status text styling */
.landed-text {
    color: #9ca3af !important;
    opacity: 0.7;
    font-weight: 600;
}

/* Last seen time color coding */
.last-seen-time {
    transition: all 0.3s ease;
}

.last-seen-time.live {
    color: #22c55e;
    font-weight: 600;
}

.last-seen-time.recent {
    color: #f59e0b;
    font-weight: 600;
}

.last-seen-time.stale {
    color: #ef4444;
    font-weight: 700;
}

/* Relative time indicator */
.relative-time {
    font-size: 0.8rem;
    margin-left: 0.3rem;
    opacity: 0.8;
}

.aircraft-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.aircraft-info {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-row:hover {
    background: rgba(102, 126, 234, 0.05);
    padding-left: 0.5rem;
    border-radius: 8px;
}

.info-row .label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.info-row .value {
    color: var(--dark-color);
    font-weight: 600;
}

.aircraft-stats h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-secondary);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    color: white;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Today Summary */
.today-summary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: fadeInUp 1s ease-out;
}

.today-summary h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.flight-item {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.flight-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(8px);
}

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

.flight-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.flight-reg {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

.flight-time {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.flight-route {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.flight-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Flight Cards */
.flights-list {
    display: grid;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.flight-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.25);
}

.flight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.flight-aircraft h3 {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    font-weight: 800;
}

.flight-date {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

.flight-duration {
    background: var(--gradient-primary);
    padding: 0.7rem 1.4rem;
    border-radius: 20px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.flight-card-body {
    margin-bottom: 1.5rem;
}

.flight-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

.flight-card-footer {
    display: flex;
    justify-content: flex-end;
}

/* Filters */
.filters {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.filters label {
    display: inline-block;
    margin-right: 1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.filters select {
    padding: 0.7rem 1.2rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filters select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Stats Dashboard */
.stats-summary {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.period-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.period-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.period-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.25);
}

.period-card h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.stat-big {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-detail {
    margin-top: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    font-size: 1.05rem;
}

.stats-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 24px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: fadeInUp 1s ease-out;
}

.stats-section h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 800;
}

.chart-container {
    padding: 1.5rem 0;
}

.daily-item {
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.daily-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.route-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.route-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(8px);
}

.route-rank {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 60px;
}

.route-info {
    flex: 1;
}

.route-name {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.route-stats {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

.stats-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 2rem;
    border-radius: 16px;
}

.stats-card .stat-label {
    color: var(--dark-color) !important;
}

.stats-card h4 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.location-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.location-name {
    color: var(--dark-color);
}

.location-count {
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.5);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    font-weight: 800;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
}

.charity-info {
    margin-bottom: 3rem;
}

.charity-info h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.charity-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

.charity-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.footer-meta {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Utility Classes */
.loading,
.no-data,
.error {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-style: italic;
    font-size: 1.1rem;
}

.error {
    color: var(--warning-color);
}

.info-text {
    color: #6c757d;
    text-align: center;
    margin: 0.75rem 0;
    font-size: 1.05rem;
}

/* Flight Detail Pages */
.flight-detail-header {
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

.back-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.flight-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.flight-detail-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.flight-detail-card h3 {
    margin-bottom: 1.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.5rem;
}

.detail-table {
    width: 100%;
}

.detail-table th {
    text-align: left;
    padding: 0.75rem;
    color: #6c757d;
    font-weight: 700;
}

.detail-table td {
    padding: 0.75rem;
    color: var(--dark-color);
    font-weight: 600;
}

.flight-map-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.flight-map {
    height: 450px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }

    .aircraft-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .aircraft-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .flight-detail-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile navigation with hamburger */
    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 73px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 73px);
        flex-direction: column;
        background: rgba(31, 41, 55, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 2rem 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        gap: 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        border-radius: 0;
        font-size: 1rem;
    }

    .period-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header h2 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    /* Stack Recent Activity columns on mobile */
    .flight-item-content {
        flex-direction: column;
        gap: 1rem;
    }

    .flight-map-small {
        height: 250px;
    }

    /* Flight cards */
    .flight-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
    }

    .charity-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    /* Page header */
    .page-header h2 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    /* Navigation - make it more compact */
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-brand h1 {
        font-size: 1rem;
    }

    .nav-menu {
        width: 80%;
        max-width: 280px;
    }

    .nav-menu li a {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Aircraft cards */
    .aircraft-card {
        padding: 1rem;
    }

    .aircraft-header h3 {
        font-size: 1.3rem;
    }

    /* Stats layout */
    .period-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    /* Flight items */
    .flight-item {
        padding: 1rem;
    }

    .flight-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .flight-reg {
        font-size: 1.1rem;
    }

    .flight-time {
        font-size: 0.85rem;
    }

    .flight-route {
        font-size: 0.9rem;
    }

    .flight-map-small {
        height: 200px;
    }

    /* Buttons */
    .btn {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }

    .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Charity links */
    .charity-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .charity-info p {
        font-size: 0.9rem;
    }

    /* Info rows */
    .info-row {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .label, .value {
        font-size: 0.9rem;
    }

    /* Detail tables */
    .detail-table th,
    .detail-table td {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}
