/* =============================================================
   AVIAÇÃO CEARÁ — "Aviation Dark" Design System v2.0
   Tema escuro profissional com identidade aeronáutica
   ============================================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
    /* ===== CORES DE FUNDO MAIS CLARAS ===== */
    --bg-primary: #111827;       /* cinza-escuro azulado (anterior: #0f1520) */
    --bg-secondary: #1f2937;     /* cinza médio (anterior: #161d2d) */
    --bg-card: #2d3748;          /* card principal (anterior: #1c2538) */
    --bg-card-hover: #374151;    /* hover (anterior: #243044) */
    --bg-surface: #1f2a3e;       /* superfícies secundárias (anterior: #192132) */
    --bg-elevated: #2d3748;      /* elementos elevados (anterior: #243044) */
    --bg-glass: rgba(45, 55, 72, 0.85); /* vidro mais claro (anterior: rgba(28, 37, 56, 0.75)) */

    /* ===== CORES DE DESTAQUE (mantidas) ===== */
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-blue-dim: rgba(59, 130, 246, 0.15);
    --accent-orange: #f97316;
    --accent-orange-light: #fb923c;
    --accent-orange-dim: rgba(249, 115, 22, 0.12);
    --accent-green: #22c55e;
    --accent-green-dim: rgba(34, 197, 94, 0.12);
    --accent-red: #ef4444;
    --accent-red-dim: rgba(239, 68, 68, 0.12);
    --accent-purple: #a855f7;
    --accent-purple-dim: rgba(168, 85, 247, 0.12);
    --accent-yellow: #eab308;
    --accent-yellow-dim: rgba(234, 179, 8, 0.12);
    --accent-cyan: #06b6d4;

    /* ===== CORES DE TEXTO (ajustadas para manter contraste) ===== */
    --text-primary: #f9fafb;     /* quase branco (anterior: #f1f5f9) */
    --text-secondary: #d1d5db;   /* cinza claro (anterior: #a0b1c5) */
    --text-tertiary: #9ca3af;    /* cinza médio (anterior: #7689a0) */
    --text-muted: #6b7280;       /* cinza mais suave (anterior: #586b82) */
    --text-accent: var(--accent-blue-light);

    /* ===== BORDAS (um pouco mais visíveis) ===== */
    --border-color: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(59, 130, 246, 0.45);

    /* ===== SOMBRAS (reduzindo a intensidade escura) ===== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.2);
    --shadow-glow-orange: 0 0 20px rgba(249, 115, 22, 0.2);

    /* demais variáveis permanecem iguais */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-height: 64px;
    --footer-height: 40px;
    --bs-body-bg: var(--bg-primary);
    --bs-body-color: var(--text-primary);
    --bs-border-color: var(--border-color);
    --primary-color: var(--accent-blue);
    --primary-dark: #2563eb;
    --secondary-color: var(--text-secondary);
    --secondary-dark: var(--text-tertiary);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}



/* Subtle grid background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* --- Selection --- */
::selection {
    background: var(--accent-blue);
    color: white;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { 
    background: var(--text-tertiary); 
    border-radius: 3px; 
}
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* --- Main Content --- */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--navbar-height) + 1rem);
    padding-bottom: calc(var(--footer-height) + 2rem);
    min-height: 100vh;
}

/* =============================================================
   NAVBAR
   ============================================================= */
.navbar {
    background: rgba(15, 21, 32, 0.88) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border-color);
    height: var(--navbar-height);
    padding: 0 1rem;
    transition: var(--transition-base);
    z-index: 1050;
}

.navbar.scrolled {
    background: rgba(15, 21, 32, 0.96) !important;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.navbar-brand .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-backdrop {
    z-index: 1040 !important;
}
.modal {
    z-index: 1050 !important;
}

/* Fallback se não tiver img */
.navbar-brand .brand-icon i {
    font-size: 1rem;
    color: white;
}

.navbar .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--text-primary) !important;
    background: var(--accent-blue-dim);
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 1px;
}

/* =============================================================
   CARDS — Glass Morphism Aviation Style
   ============================================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.card:hover {
    transform: none;
    box-shadow: none;
}

.card-header {
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
    font-weight: 600;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
}

.card-body {
    padding: 1.25rem;
}

/* --- Operation Card (Index Feed) --- */
.operation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: default;
}

.operation-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-4px);
}

.operation-card .card-body {
    padding: 0.875rem 1rem;
}

/* Photo area */
.operation-card .photo-area {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-surface);
}

.operation-card .photo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.operation-card:hover .photo-area img {
    transform: scale(1.05);
}

.operation-card .photo-area .no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-tertiary);
}

/* Image overlay gradient */
.image-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0.875rem 0.75rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 10;
}

.image-overlay-text h5 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    margin: 0;
    letter-spacing: -0.01em;
}

.image-overlay-text small {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
}

/* --- Type Badges --- */
.badge-type {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3em 0.65em;
    border-radius: var(--radius-sm);
    border: none;
}

.bg-alternado, .badge-alternado {
    background: var(--accent-red) !important;
    color: white;
}

.bg-escala, .badge-escala {
    background: var(--accent-blue) !important;
    color: white;
}

.bg-pax, .badge-pax {
    background: var(--accent-purple) !important;
    color: white;
}

.bg-carga {
    background: var(--accent-orange) !important;
    color: white;
}

.bg-militar {
    background: #065f46 !important;
    color: #6ee7b7;
}

.bg-oficial {
    background: #1e3a5f !important;
    color: #93c5fd;
}
 

.bg-outros {
    background: var(--text-tertiary) !important;
    color: white;
}

/* Status badges */
.badge-status-solo {
    background: var(--accent-yellow-dim);
    color: var(--accent-yellow);
    border: 1px solid rgba(234, 179, 8, 0.2);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.3em 0.7em;
    border-radius: 999px;
    animation: pulse-solo 2s ease-in-out infinite;
}

.badge-status-done {
    background: var(--accent-green-dim);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.3em 0.7em;
    border-radius: 999px;
}

@keyframes pulse-solo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* --- Photos Count Badge --- */
.photos-count-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255,255,255,0.1);
}

/* =============================================================
   STAT CARDS (Top of index)
   ============================================================= */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card--total::before { background: var(--accent-blue); }
.stat-card--done::before { background: var(--accent-green); }
.stat-card--ground::before { background: var(--accent-orange); }
.stat-card--photos::before { background: var(--accent-purple); }

.stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.stat-card .stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card--total .stat-value { color: var(--accent-blue-light); }
.stat-card--done .stat-value { color: var(--accent-green); }
.stat-card--ground .stat-value { color: var(--accent-orange-light); }
.stat-card--photos .stat-value { color: var(--accent-purple); }

/* =============================================================
   FILTER CHIPS
   ============================================================= */
.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 0;
}

.filter-chip {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.filter-chip:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
    border-color: var(--border-accent);
}

.filter-chip.active {
    background: var(--accent-blue-dim);
    color: var(--accent-blue-light);
    border-color: var(--accent-blue);
}

.filter-chip--clear {
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.2);
}

.filter-chip--clear:hover {
    background: var(--accent-red-dim);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* =============================================================
   SEARCH BAR
   ============================================================= */
.search-box {
    position: relative;
}

.search-box input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    transition: var(--transition-fast);
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow-blue);
    background: var(--bg-surface);
}

.search-box .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 0.85rem;
    pointer-events: none;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    padding: 0.5rem 1.25rem;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: var(--shadow-glow-blue);
}

.btn-glow {
    background: linear-gradient(135deg, var(--accent-blue), #6366f1);
    color: white;
    border: none;
    position: relative;
}

.btn-glow:hover {
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
    color: white;
}

.btn-outline-subtle {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline-subtle:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
    background: var(--bg-elevated);
}

.btn-success {
    background: var(--accent-green) !important;
    color: white;
    border: none;
}

.btn-danger {
    background: var(--accent-red) !important;
    color: white;
    border: none;
}

/* =============================================================
   CAROUSEL OVERRIDES
   ============================================================= */
.carousel-control-prev, .carousel-control-next {
    width: 14%;
    background: transparent;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card:hover .carousel-control-prev,
.card:hover .carousel-control-next {
    opacity: 0.9;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 28px;
    height: 28px;
    background-color: rgba(0,0,0,0.6);
    border-radius: 50%;
    background-size: 50%;
    padding: 0.5rem;
}

/* =============================================================
   PAGINATION
   ============================================================= */
.pagination .page-item .page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    margin: 0 0.2rem;
}

.pagination .page-item.active .page-link {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.pagination .page-item .page-link:hover {
    background: var(--bg-elevated);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

/* =============================================================
   FORMS
   ============================================================= */
.form-control, .form-select {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: var(--shadow-glow-blue) !important;
    background: var(--bg-surface) !important;
}

.form-control::placeholder {
    color: var(--text-tertiary) !important;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-text {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

/* =============================================================
   DETAIL PAGE — Info Sections
   ============================================================= */
.info-section {
    height: 100%;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child { border-bottom: none; }

.info-item .label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.info-item .value {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    font-size: 0.85rem;
}

/* Metadata grid */
.metadata-grid {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.metadata-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.metadata-item i {
    margin-top: 0.2rem;
    font-size: 1rem;
}

.metadata-label {
    display: block;
    font-weight: 500;
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.metadata-value {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Gradient Headers for Detail Page */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%) !important;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

/* =============================================================
   SPOTTER PROFILE
   ============================================================= */
.spotter-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.spotter-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-blue);
    box-shadow: var(--shadow-glow-blue);
}

/* =============================================================
   SPOTTERS INDEX
   ============================================================= */
.spotter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.spotter-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-4px);
}

.spotter-card .card-body {
    color: var(--text-primary);
}

.spotter-card h6 {
    color: var(--text-primary);
}

.spotter-card p {
    color: var(--text-secondary);
}

.card-link:hover {
    text-decoration: none;
}

/* =============================================================
   DASHBOARD
   ============================================================= */
.dashboard-stat {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(15, 21, 32, 0.92) !important;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    height: var(--footer-height);
}

.footer-fixed .footer-content {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.footer-fixed a {
    color: var(--text-secondary) !important;
    transition: color var(--transition-fast);
}

.footer-fixed a:hover {
    color: var(--accent-blue-light) !important;
}

/* =============================================================
   LOGIN / REGISTER PAGES
   ============================================================= */
.card.shadow-lg {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.card-header.bg-primary,
.card-header.bg-success {
    border-bottom: 1px solid var(--border-color);
}

.card-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.card-footer a {
    color: var(--accent-blue-light);
}

/* =============================================================
   ALERTS & FLASH MESSAGES
   ============================================================= */
.alert {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.alert-success {
    border-left: 3px solid var(--accent-green);
    background: var(--accent-green-dim);
    color: var(--accent-green);
}

.alert-danger {
    border-left: 3px solid var(--accent-red);
    background: var(--accent-red-dim);
    color: var(--accent-red);
}

.alert-warning {
    border-left: 3px solid var(--accent-yellow);
    background: var(--accent-yellow-dim);
    color: var(--accent-yellow);
}

.alert-info {
    border-left: 3px solid var(--accent-blue);
    background: var(--accent-blue-dim);
    color: var(--accent-blue-light);
}

/* =============================================================
   TABLE
   ============================================================= */
.table {
    color: var(--text-primary);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--bg-elevated);
}

.table th {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem;
}

.table td {
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem;
    vertical-align: middle;
}

/* =============================================================
   BADGES (Bootstrap Overrides)
   ============================================================= */
.badge {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: var(--radius-sm);
}

.badge.bg-primary { background: var(--accent-blue) !important; }
.badge.bg-success { background: var(--accent-green) !important; }
.badge.bg-danger { background: var(--accent-red) !important; }
.badge.bg-warning { 
    background: var(--accent-yellow) !important; 
    color: #000 !important; 
}
.badge.bg-info { background: var(--accent-cyan) !important; color: white !important; }
.badge.bg-secondary { background: var(--text-tertiary) !important; }
.badge.bg-dark { background: var(--bg-elevated) !important; }

/* =============================================================
   DROPDOWN
   ============================================================= */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.dropdown-item {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.dropdown-item.text-danger:hover {
    background: var(--accent-red-dim);
    color: var(--accent-red);
}

.dropdown-divider {
    border-top-color: var(--border-color);
}

/* =============================================================
   FILE UPLOAD
   ============================================================= */
.file-upload-container input[type="file"] {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    background: var(--bg-surface);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.file-upload-container input[type="file"]:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue-dim);
}

/* =============================================================
   MISCELLANEOUS OVERRIDES
   ============================================================= */

/* bg-light in dark theme */
.bg-light {
    background: var(--bg-surface) !important;
}

/* text-muted */
.text-muted {
    color: var(--text-tertiary) !important;
}

/* Bootstrap card variants override */
.card.bg-primary { background: var(--accent-blue) !important; border: none; }
.card.bg-success { background: var(--accent-green) !important; border: none; }
.card.bg-warning { background: var(--accent-orange) !important; border: none; }
.card.bg-info { background: var(--accent-cyan) !important; border: none; }
.card.bg-dark { background: var(--bg-elevated) !important; border: 1px solid var(--border-color); }
.card.bg-secondary { background: var(--bg-card) !important; border: 1px solid var(--border-color); }

/* Input group */
.input-group-text {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Border top utility */
.border-top {
    border-top-color: var(--border-color) !important;
}

/* Container fluid padding adjustments */
.container-fluid.py-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1200px) {
    .container-fluid.py-4 {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* =============================================================
   PAGE TITLE STYLES
   ============================================================= */
.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.page-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fade-in-up 0.4s ease-out both;
}

/* Stagger children */
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.4rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    .operation-card .photo-area {
        height: 180px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .info-item .value {
        text-align: left;
    }
    
    .container-fluid.py-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .spotter-header {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .filter-chips {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-chips::-webkit-scrollbar { display: none; }
}