/**
 * ════════════════════════════════════════════════════════════════════════════
 * SKYQUOTE - UNIFIED GLOBAL STYLESHEET
 * ════════════════════════════════════════════════════════════════════════════
 *
 * Professional drone quote management platform
 * Consolidated styling for consistent design across all pages
 *
 * Author: SkyQuote Development Team
 * Last Updated: 2025-12-16
 * Version: 3.0 - Multi-Theme Support
 *
 * THEME SYSTEM:
 * - light (default): Clean, professional white/blue
 * - dark: Dark mode for low-light environments
 * - pastel: Colorful gradients (future)
 *
 * ════════════════════════════════════════════════════════════════════════════
 */


/* ════════════════════════════════════════════════════════════════════════════
   1. THEME SYSTEM - CSS CUSTOM PROPERTIES
   ════════════════════════════════════════════════════════════════════════════
   
   All themeable colors are defined as CSS variables.
   Components should ONLY use these variables, never hardcoded colors.
   To add a new theme, copy a theme block and change the values.
   
   ════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   1.1 LIGHT THEME (Default)
   Clean, professional appearance with white backgrounds and blue accents
   ───────────────────────────────────────────────────────────────────────────── */

:root,
[data-theme="light"] {
    /* === Page Backgrounds === */
    --theme-bg-page: #f5f7fa;
    --theme-bg-card: #ffffff;
    --theme-bg-card-secondary: #f8f9fa;
    --theme-bg-header: #ffffff;
    --theme-bg-input: #ffffff;
    --theme-bg-hover: rgba(0, 0, 0, 0.04);
    --theme-bg-selected: rgba(13, 110, 253, 0.08);
    
    /* === Text Colors === */
    --theme-text-primary: #212529;
    --theme-text-secondary: #6c757d;
    --theme-text-muted: #adb5bd;
    --theme-text-inverse: #ffffff;
    --theme-text-link: #0d6efd;
    --theme-text-link-hover: #0a58ca;
    
    /* === Border Colors === */
    --theme-border: #dee2e6;
    --theme-border-light: #e9ecef;
    --theme-border-dark: #ced4da;
    --theme-border-focus: #86b7fe;
    
    /* === Primary Action Colors (buttons, links, accents) === */
    --theme-primary: #0d6efd;
    --theme-primary-hover: #0b5ed7;
    --theme-primary-active: #0a58ca;
    --theme-primary-subtle: rgba(13, 110, 253, 0.1);
    
    /* === Status Colors === */
    --theme-success: #198754;
    --theme-success-subtle: rgba(25, 135, 84, 0.1);
    --theme-warning: #ffc107;
    --theme-warning-subtle: rgba(255, 193, 7, 0.1);
    --theme-danger: #dc3545;
    --theme-danger-subtle: rgba(220, 53, 69, 0.1);
    --theme-info: #0dcaf0;
    --theme-info-subtle: rgba(13, 202, 240, 0.1);
    
    /* === Shadows === */
    --theme-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --theme-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --theme-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --theme-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* === Table Colors === */
    --theme-table-bg: #ffffff;
    --theme-table-stripe: #f8f9fa;
    --theme-table-hover: #e9ecef;
    --theme-table-header: #f8f9fa;
    
    /* === Form Colors === */
    --theme-input-border: #ced4da;
    --theme-input-focus-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --theme-input-disabled-bg: #e9ecef;
    
    /* === KPI Card Border Colors (for dashboard-style cards) === */
    --theme-kpi-success: #198754;
    --theme-kpi-warning: #ffc107;
    --theme-kpi-primary: #0d6efd;
    --theme-kpi-info: #0dcaf0;
    
    /* === Gradients (for future pastel theme, keeping standard for light) === */
    --theme-gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    --theme-gradient-success: linear-gradient(135deg, #198754 0%, #157347 100%);
    --theme-gradient-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ─────────────────────────────────────────────────────────────────────────────
   1.2 DARK THEME
   Dark backgrounds for low-light environments, reduced eye strain
   ───────────────────────────────────────────────────────────────────────────── */

[data-theme="dark"] {
    /* === Page Backgrounds === */
    --theme-bg-page: #0f1117;
    --theme-bg-card: #1a1d24;
    --theme-bg-card-secondary: #22262f;
    --theme-bg-header: #1a1d24;
    --theme-bg-input: #22262f;
    --theme-bg-hover: rgba(255, 255, 255, 0.06);
    --theme-bg-selected: rgba(99, 138, 255, 0.15);
    
    /* === Text Colors === */
    --theme-text-primary: #e9ecef;
    --theme-text-secondary: #adb5bd;
    --theme-text-muted: #6c757d;
    --theme-text-inverse: #1a1d24;
    --theme-text-link: #6ea8fe;
    --theme-text-link-hover: #9ec5fe;
    
    /* === Border Colors === */
    --theme-border: #2d3139;
    --theme-border-light: #22262f;
    --theme-border-dark: #3d424d;
    --theme-border-focus: #6ea8fe;
    
    /* === Primary Action Colors === */
    --theme-primary: #6ea8fe;
    --theme-primary-hover: #9ec5fe;
    --theme-primary-active: #3d8bfd;
    --theme-primary-subtle: rgba(110, 168, 254, 0.15);
    
    /* === Status Colors (brighter for dark bg) === */
    --theme-success: #75b798;
    --theme-success-subtle: rgba(117, 183, 152, 0.15);
    --theme-warning: #ffda6a;
    --theme-warning-subtle: rgba(255, 218, 106, 0.15);
    --theme-danger: #ea868f;
    --theme-danger-subtle: rgba(234, 134, 143, 0.15);
    --theme-info: #6edff6;
    --theme-info-subtle: rgba(110, 223, 246, 0.15);
    
    /* === Shadows (stronger for dark mode) === */
    --theme-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --theme-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --theme-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --theme-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    
    /* === Table Colors === */
    --theme-table-bg: #1a1d24;
    --theme-table-stripe: #22262f;
    --theme-table-hover: #2d3139;
    --theme-table-header: #22262f;
    
    /* === Form Colors === */
    --theme-input-border: #3d424d;
    --theme-input-focus-shadow: 0 0 0 0.25rem rgba(110, 168, 254, 0.25);
    --theme-input-disabled-bg: #2d3139;
    
    /* === KPI Card Border Colors === */
    --theme-kpi-success: #75b798;
    --theme-kpi-warning: #ffda6a;
    --theme-kpi-primary: #6ea8fe;
    --theme-kpi-info: #6edff6;
    
    /* === Gradients === */
    --theme-gradient-primary: linear-gradient(135deg, #6ea8fe 0%, #3d8bfd 100%);
    --theme-gradient-success: linear-gradient(135deg, #75b798 0%, #5a9a7d 100%);
    --theme-gradient-header: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

/* ─────────────────────────────────────────────────────────────────────────────
   1.3 PASTEL THEME (Future - Placeholder)
   Soft colors with gradient accents
   ───────────────────────────────────────────────────────────────────────────── */

[data-theme="pastel"] {
    /* === Page Backgrounds === */
    --theme-bg-page: #f8f9ff;
    --theme-bg-card: #ffffff;
    --theme-bg-card-secondary: #f0f4ff;
    --theme-bg-header: #ffffff;
    --theme-bg-input: #ffffff;
    --theme-bg-hover: rgba(102, 126, 234, 0.06);
    --theme-bg-selected: rgba(102, 126, 234, 0.12);
    
    /* === Text Colors === */
    --theme-text-primary: #2d3436;
    --theme-text-secondary: #636e72;
    --theme-text-muted: #b2bec3;
    --theme-text-inverse: #ffffff;
    --theme-text-link: #667eea;
    --theme-text-link-hover: #764ba2;
    
    /* === Border Colors === */
    --theme-border: #e0e6ff;
    --theme-border-light: #f0f4ff;
    --theme-border-dark: #c8d4ff;
    --theme-border-focus: #667eea;
    
    /* === Primary Action Colors (purple gradient style) === */
    --theme-primary: #667eea;
    --theme-primary-hover: #764ba2;
    --theme-primary-active: #5a6fd6;
    --theme-primary-subtle: rgba(102, 126, 234, 0.12);
    
    /* === Status Colors (softer pastels) === */
    --theme-success: #11998e;
    --theme-success-subtle: rgba(17, 153, 142, 0.12);
    --theme-warning: #f59e0b;
    --theme-warning-subtle: rgba(245, 158, 11, 0.12);
    --theme-danger: #f093fb;
    --theme-danger-subtle: rgba(240, 147, 251, 0.12);
    --theme-info: #4facfe;
    --theme-info-subtle: rgba(79, 172, 254, 0.12);
    
    /* === Shadows (softer, colored) === */
    --theme-shadow-sm: 0 1px 3px rgba(102, 126, 234, 0.08);
    --theme-shadow: 0 2px 10px rgba(102, 126, 234, 0.12);
    --theme-shadow-md: 0 4px 20px rgba(102, 126, 234, 0.15);
    --theme-shadow-lg: 0 8px 30px rgba(102, 126, 234, 0.18);
    
    /* === Table Colors === */
    --theme-table-bg: #ffffff;
    --theme-table-stripe: #f8f9ff;
    --theme-table-hover: #f0f4ff;
    --theme-table-header: #f0f4ff;
    
    /* === Form Colors === */
    --theme-input-border: #e0e6ff;
    --theme-input-focus-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    --theme-input-disabled-bg: #f0f4ff;
    
    /* === KPI Card Border Colors (gradient-friendly) === */
    --theme-kpi-success: #11998e;
    --theme-kpi-warning: #f59e0b;
    --theme-kpi-primary: #667eea;
    --theme-kpi-info: #4facfe;
    
    /* === Gradients (the signature pastel look) === */
    --theme-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --theme-gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --theme-gradient-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


/* ════════════════════════════════════════════════════════════════════════════
   2. BASE STYLES - Using Theme Variables
   ════════════════════════════════════════════════════════════════════════════ */

body {
    background-color: var(--theme-bg-page);
    color: var(--theme-text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--theme-text-link);
    text-decoration: none;
}

a:hover {
    color: var(--theme-text-link-hover);
}


/* ════════════════════════════════════════════════════════════════════════════
   2.5 THEMEABLE TYPOGRAPHY & ICON CLASSES
   ════════════════════════════════════════════════════════════════════════════

   Design System Hierarchy:
   - Page Title: <h4> with .page-title
   - Card/Section Header: <h5> with icon using .icon-primary
   - Sub-section Header: <h6> with .text-section-muted
   - Form Labels: <label class="form-label fw-bold"> (no icons)

   ALL icons in headers use .icon-primary → var(--theme-primary)
   This ensures theme changes affect ALL section icons consistently.

   ════════════════════════════════════════════════════════════════════════════ */

/* === Themeable Icon Colors === */
.icon-primary {
    color: var(--theme-primary) !important;
}

.icon-muted {
    color: var(--theme-text-secondary) !important;
}

.icon-success {
    color: var(--theme-success) !important;
}

.icon-warning {
    color: var(--theme-warning) !important;
}

.icon-danger {
    color: var(--theme-danger) !important;
}

.icon-info {
    color: var(--theme-info) !important;
}

/* === Themeable Text Colors (override Bootstrap) === */
.text-theme-primary {
    color: var(--theme-primary) !important;
}

.text-theme-muted {
    color: var(--theme-text-secondary) !important;
}

.text-theme-success {
    color: var(--theme-success) !important;
}

.text-theme-warning {
    color: var(--theme-warning) !important;
}

.text-theme-danger {
    color: var(--theme-danger) !important;
}

/* === Section Header Styles === */
.section-header {
    color: var(--theme-text-primary);
    font-weight: 500;
}

.section-header i {
    color: var(--theme-primary);
}

/* Sub-section headers (h6 inside card body) */
.subsection-header {
    color: var(--theme-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}


/* ════════════════════════════════════════════════════════════════════════════
   3. CARD COMPONENT - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

.card {
    background-color: var(--theme-bg-card);
    border: 1px solid var(--theme-border);
    border-radius: 0.5rem;
    box-shadow: var(--theme-shadow-sm);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
    background-color: var(--theme-bg-card-secondary);
    border-bottom: 1px solid var(--theme-border);
    color: var(--theme-text-primary);
}

.card-header.bg-white {
    background-color: var(--theme-bg-card) !important;
}

.card-body {
    background-color: var(--theme-bg-card);
    color: var(--theme-text-primary);
}

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


/* ════════════════════════════════════════════════════════════════════════════
   4. TABLE COMPONENT - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

.table {
    color: var(--theme-text-primary);
    border-color: var(--theme-border);
}

.table > thead {
    background-color: var(--theme-table-header);
}

.table > thead th {
    background-color: var(--theme-table-header);
    color: var(--theme-text-primary);
    border-color: var(--theme-border);
}

.table > tbody > tr > td {
    border-color: var(--theme-border);
    color: var(--theme-text-primary);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--theme-table-stripe);
}

.table-hover > tbody > tr:hover {
    background-color: var(--theme-table-hover);
}

.table-light,
.table-light th {
    background-color: var(--theme-table-header) !important;
    color: var(--theme-text-primary) !important;
}


/* ════════════════════════════════════════════════════════════════════════════
   5. FORM COMPONENTS - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

.form-control,
.form-select {
    background-color: var(--theme-bg-input);
    border-color: var(--theme-input-border);
    color: var(--theme-text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--theme-bg-input);
    border-color: var(--theme-border-focus);
    box-shadow: var(--theme-input-focus-shadow);
    color: var(--theme-text-primary);
}

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

.form-control:disabled,
.form-select:disabled {
    background-color: var(--theme-input-disabled-bg);
}

.input-group-text {
    background-color: var(--theme-bg-card-secondary);
    border-color: var(--theme-input-border);
    color: var(--theme-text-secondary);
}

.form-label {
    color: var(--theme-text-primary);
}

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

.form-check-label {
    color: var(--theme-text-primary);
}


/* ════════════════════════════════════════════════════════════════════════════
   6. BUTTON COMPONENT - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

.btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

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

.btn-outline-primary {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

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

.btn-outline-secondary {
    color: var(--theme-text-secondary);
    border-color: var(--theme-border);
}

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

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

.btn-danger {
    background-color: var(--theme-danger);
    border-color: var(--theme-danger);
}

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

.btn-info {
    background-color: var(--theme-info);
    border-color: var(--theme-info);
}


/* ════════════════════════════════════════════════════════════════════════════
   7. MODAL COMPONENT - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

.modal-content {
    background-color: var(--theme-bg-card);
    border-color: var(--theme-border);
    color: var(--theme-text-primary);
}

.modal-header {
    background-color: var(--theme-bg-card-secondary);
    border-color: var(--theme-border);
}

.modal-footer {
    background-color: var(--theme-bg-card-secondary);
    border-color: var(--theme-border);
}

.modal-title {
    color: var(--theme-text-primary);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}


/* ════════════════════════════════════════════════════════════════════════════
   8. DROPDOWN COMPONENT - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

.dropdown-menu {
    background-color: var(--theme-bg-card);
    border-color: var(--theme-border);
    box-shadow: var(--theme-shadow-md);
}

.dropdown-item {
    color: var(--theme-text-primary);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--theme-bg-hover);
    color: var(--theme-text-primary);
}

.dropdown-divider {
    border-color: var(--theme-border);
}


/* ════════════════════════════════════════════════════════════════════════════
   9. ALERT COMPONENT - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

.alert-primary {
    background-color: var(--theme-primary-subtle);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

.alert-success {
    background-color: var(--theme-success-subtle);
    border-color: var(--theme-success);
    color: var(--theme-success);
}

.alert-warning {
    background-color: var(--theme-warning-subtle);
    border-color: var(--theme-warning);
    color: var(--theme-warning);
}

.alert-danger {
    background-color: var(--theme-danger-subtle);
    border-color: var(--theme-danger);
    color: var(--theme-danger);
}

.alert-info {
    background-color: var(--theme-info-subtle);
    border-color: var(--theme-info);
    color: var(--theme-info);
}


/* ════════════════════════════════════════════════════════════════════════════
   10. BADGE COMPONENT - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

.badge.bg-light {
    background-color: var(--theme-bg-card-secondary) !important;
    color: var(--theme-text-primary) !important;
}


/* ════════════════════════════════════════════════════════════════════════════
   11. LIST GROUP COMPONENT - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

.list-group-item {
    background-color: var(--theme-bg-card);
    border-color: var(--theme-border);
    color: var(--theme-text-primary);
}

.list-group-item:hover {
    background-color: var(--theme-bg-hover);
}


/* ════════════════════════════════════════════════════════════════════════════
   12. BORDER & DIVIDER UTILITIES - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

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

.border-top,
.border-bottom,
.border-start,
.border-end {
    border-color: var(--theme-border) !important;
}

hr {
    border-color: var(--theme-border);
    opacity: 1;
}


/* ════════════════════════════════════════════════════════════════════════════
   13. TEXT UTILITIES - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

.text-muted {
    color: var(--theme-text-secondary) !important;
}

.text-dark {
    color: var(--theme-text-primary) !important;
}


/* ════════════════════════════════════════════════════════════════════════════
   14. KPI CARDS (Dashboard Style) - Theme Aware
   ════════════════════════════════════════════════════════════════════════════ */

.kpi-card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-md);
}

.kpi-card-success {
    border-left: 4px solid var(--theme-kpi-success) !important;
}

.kpi-card-warning {
    border-left: 4px solid var(--theme-kpi-warning) !important;
}

.kpi-card-primary {
    border-left: 4px solid var(--theme-kpi-primary) !important;
}

.kpi-card-info {
.kpi-card-danger {
    border-left: 4px solid var(--bs-danger) !important;
}
    border-left: 4px solid var(--theme-kpi-info) !important;
}


/* ════════════════════════════════════════════════════════════════════════════
   15. CLICKABLE TABLE ROWS
   ════════════════════════════════════════════════════════════════════════════ */

.table-clickable tbody tr {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

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


/* ════════════════════════════════════════════════════════════════════════════
   16. FORM SWITCH SPREAD (Label left, value right)
   ════════════════════════════════════════════════════════════════════════════ */

.form-switch-spread {
    position: relative;
    padding-left: 3rem !important;
}

.form-switch-spread .form-check-input {
    margin-left: -2.5rem;
}

.form-switch-spread .form-check-label {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-left: 0;
    color: var(--theme-text-primary);
}




/* ════════════════════════════════════════════════════════════════════════════
   17. STATS SECTION (Landing Page)
   ════════════════════════════════════════════════════════════════════════════ */

.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

/* Make sure stat-label is visible on gradient background */
.stats-section .stat-label {
    color: white !important;
    opacity: 1;
}

.stats-section .stat-card {
    text-align: center;
}


/* ════════════════════════════════════════════════════════════════════════════
   18. COMPREHENSIVE MOBILE OPTIMIZATIONS
   ════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   18.1 NAVIGATION - Mobile Menu Improvements
   ───────────────────────────────────────────────────────────────────────────── */

/* Mobile hamburger button styling */
.navbar-toggler {
    padding: 0.5rem;
    border: 2px solid var(--primary-purple) !important;
    border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

@media (max-width: 991.98px) {
    /* Full-width mobile nav */
    .navbar .container {
        padding: 0.5rem 1rem;
    }
    
    /* Mobile nav collapse */
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin: 0.5rem -1rem -0.5rem;
        border-top: 1px solid var(--border-color);
    }
    
    /* Stack nav items vertically */
    .navbar-nav {
        gap: 0.25rem;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--radius-sm);
        transition: background 0.2s;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:active {
        background: rgba(102, 126, 234, 0.1);
    }
    
    /* Mobile dropdowns */
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        background: rgba(0, 0, 0, 0.02);
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.6rem 1rem;
        border-radius: var(--radius-sm);
    }
    
    /* Mobile CTA button */
    .navbar-nav .btn {
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.75rem !important;
    }
    
    /* Reset left margin on mobile */
    .navbar-nav .ms-lg-3 {
        margin-left: 0 !important;
    }
    
    /* Badge positioning fix on mobile */
    .navbar-nav .position-relative .badge {
        position: static !important;
        transform: none !important;
        margin-left: 0.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.2 DASHBOARD - KPI Cards & Charts Mobile
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    /* Dashboard header */
    .container-fluid .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container-fluid .d-flex.justify-content-between h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .container-fluid .d-flex.justify-content-between .d-flex.gap-2 {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* KPI Cards - stack on mobile */
    #kpiCards .col-lg-3,
    #kpiCards .col-md-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    #kpiCards .card-body {
        padding: 1rem;
    }
    
    #kpiCards h2 {
        font-size: 1.5rem !important;
    }
    
    #kpiCards h6 {
        font-size: 0.65rem !important;
    }
    
    /* Chart containers */
    .dashboard-widget .card {
        margin-bottom: 1rem;
    }
    
    .dashboard-widget canvas {
        max-height: 250px !important;
    }
    
    /* Quick Stats cards */
    #quickStats .card-body .row .col-6 {
        padding: 0.25rem;
    }
    
    /* Customization panel */
    #customizationPanel .col-md-3 {
        margin-bottom: 0.5rem;
    }
    
    /* Date filter dropdown */
    #dateFilter {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.3 LANDING PAGE - Hero & Product Grid Mobile
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    /* Hero section */
    .hero-section {
        padding: 2rem 0 1.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Product grid - single column on mobile */
    .hero-product-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-product-card {
        padding: 1.5rem;
    }
    
    .hero-product-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .hero-product-icon i {
        font-size: 1.75rem;
    }
    
    .hero-product-title {
        font-size: 1.25rem;
    }
    
    /* Stats section */
    .stats-section {
        padding: 2rem 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stats-section .row > div {
        margin-bottom: 1.5rem;
    }
    
    /* Beta banner */
    .beta-banner {
        padding: 1rem 0;
    }
    
    .beta-banner .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .beta-seats-counter {
        font-size: 1rem;
    }
    
    .beta-seats-counter strong {
        font-size: 1.75rem;
    }
    
    .beta-cta-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.4 FORMS & INPUTS - Touch-Friendly Mobile
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    /* Larger touch targets */
    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom */
        padding: 0.75rem 1rem;
    }
    
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.25rem;
    }
    
    .btn-sm {
        min-height: 40px;
    }
    
    /* Form labels */
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Checkboxes and switches */
    .form-check {
        padding: 0.75rem 0 0.75rem 2rem;
    }
    
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.5 TABLES - Responsive Scrolling
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    /* Table wrapper for horizontal scroll */
    .table-responsive {
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        white-space: nowrap;
        padding: 0.75rem 0.5rem;
    }
    
    /* Priority columns visible */
    .table .priority-hide-mobile {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.6 CARDS & TILES - Mobile Spacing
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .tile {
        padding: 1rem;
    }
    
    .tile-value {
        font-size: 1.25rem;
    }
    
    .tile-actions {
        flex-direction: column;
    }
    
    .tile-actions .btn {
        width: 100%;
    }
    
    /* Container padding */
    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.7 GRADIENT HEADERS - Mobile Adjustments
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .fleet-header,
    .page-header,
    .workspace-header {
        padding: 1.25rem;
        text-align: center;
    }
    
    .fleet-header h1,
    .page-header h1,
    .workspace-header h1 {
        font-size: 1.5rem !important;
    }
    
    /* Stat cards in headers */
    .fleet-stat-card,
    .stat-card,
    .stat-box {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .fleet-stat-value,
    .stat-value {
        font-size: 1.75rem;
    }
    
    .fleet-stat-label,
    .stat-label {
        font-size: 0.75rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.8 QUOTES LIST - Mobile View
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    /* Quote cards when in card view */
    .quote-card {
        padding: 1rem;
    }
    
    .quote-card .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quote-card .badge {
        align-self: flex-start;
    }
    
    /* Quote actions */
    .quote-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .quote-actions .btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.9 MODALS - Mobile Full-Screen Style
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: var(--radius-lg);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.10 ALERTS - Mobile Stacking
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .alert {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .alert.d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .alert i.fs-4 {
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.11 PROFILE PAGE - Mobile Layout
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-avatar {
        margin: 0 auto;
    }
    
    .profile-section {
        padding: 1rem;
    }
    
    .profile-section h5 {
        font-size: 1.1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.12 UTILITY - Mobile-Only Classes
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .hide-mobile {
        display: none !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .w-100-mobile {
        width: 100% !important;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }
    
    .flex-column-mobile {
        flex-direction: column !important;
    }
}

@media (min-width: 768px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18.13 SMALL SCREENS (< 576px) - Extra Compact
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 575.98px) {
    /* Even smaller typography */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.125rem !important; }
    h4 { font-size: 1rem !important; }
    
    /* Tighter spacing */
    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card,
    .tile {
        padding: 0.75rem;
    }
    
    /* Stack horizontal buttons */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: var(--radius-md) !important;
        margin-bottom: 0.25rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   20. DASHBOARD STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* KPI Cards with colored left borders */
.kpi-card {
    border: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.kpi-card-success {
    border-left: 4px solid #28a745 !important;
}

.kpi-card-warning {
    border-left: 4px solid #ffc107 !important;
}

.kpi-card-primary {
    border-left: 4px solid #007bff !important;
}

.kpi-card-info {
.kpi-card-danger {
    border-left: 4px solid var(--bs-danger) !important;
}
    border-left: 4px solid #17a2b8 !important;
}

/* Clickable table rows */
.table-clickable tbody tr {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.table-clickable tbody tr:hover {
    background-color: rgba(0,0,0,0.04);
}

/* Dashboard section headers */
.dashboard-section-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}

/* Dark mode for Dashboard */
[data-theme=dark] .kpi-card {
    background: var(--theme-bg-card, #1f2937);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

[data-theme=dark] .kpi-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

[data-theme=dark] .kpi-card .card-body {
    background: transparent;
}

[data-theme=dark] .kpi-card .text-muted {
    color: var(--theme-text-secondary, #9ca3af) !important;
}

[data-theme=dark] .kpi-card h3 {
    color: inherit;
}

[data-theme=dark] .table-clickable tbody tr:hover {
    background-color: rgba(255,255,255,0.05);
}

[data-theme=dark] .dashboard-section-header {
    background: var(--theme-bg-tertiary, #111827);
    border-color: var(--theme-border-color, #374151);
}

[data-theme=dark] .card-header.bg-white {
    background: var(--theme-bg-tertiary, #111827) !important;
    border-color: var(--theme-border-color, #374151);
}

[data-theme=dark] .table-light {
    background: var(--theme-bg-tertiary, #111827) !important;
}

[data-theme=dark] .table-light th {
    background: var(--theme-bg-tertiary, #111827) !important;
    color: var(--theme-text-primary, #e5e7eb) !important;
    border-color: var(--theme-border-color, #374151) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   21. CALCULATOR / FORM STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Form switch spread styles are defined in Section 16 above */

/* Gradient card variants */
.card-gradient-primary {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,245,255,0.95) 100%);
    border: 2px solid rgba(102,126,234,0.3);
}

.card-gradient-primary > .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.card-gradient-primary > .card-body {
    background: linear-gradient(135deg, rgba(247,250,255,0.5) 0%, rgba(255,247,250,0.5) 100%);
}

/* Service config card */
.card-gradient-service {
    background: linear-gradient(135deg, rgba(102,126,234,0.12) 0%, rgba(118,75,162,0.12) 100%);
    border: 2px solid rgba(102,126,234,0.4);
}

.card-gradient-service > .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.card-gradient-service > .card-body {
    background: rgba(255,255,255,0.6);
}

/* Add-ons card */
.card-gradient-addons {
    background: linear-gradient(135deg, rgba(79,172,254,0.12) 0%, rgba(0,242,254,0.12) 100%);
    border: 2px solid rgba(79,172,254,0.4);
}

.card-gradient-addons > .card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
}

.card-gradient-addons > .card-body {
    background: rgba(255,255,255,0.6);
}

/* Notes card */
.card-gradient-notes {
    background: linear-gradient(135deg, rgba(240,147,251,0.12) 0%, rgba(245,87,108,0.12) 100%);
    border: 2px solid rgba(240,147,251,0.4);
}

.card-gradient-notes > .card-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.card-gradient-notes > .card-body {
    background: rgba(255,255,255,0.7);
}

/* Quote total card */
.card-gradient-total {
    background: linear-gradient(135deg, rgba(17,153,142,0.12) 0%, rgba(56,239,125,0.12) 100%);
    border: 3px solid rgba(17,153,142,0.5);
}

.card-gradient-total > .card-body {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Info box with left border */
.info-box-cyan {
    background: linear-gradient(135deg, rgba(14,165,233,0.15) 0%, rgba(2,132,199,0.08) 100%);
    border-left: 4px solid #0ea5e9;
    padding: 1rem;
    border-radius: 0.375rem;
}

/* Gradient buttons */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-gradient-primary-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Dark mode for calculator/form elements */
[data-theme=dark] .card-gradient-primary {
    background: linear-gradient(135deg, #1f2937 0%, #1a1f2e 100%);
    border-color: rgba(102,126,234,0.4);
}

[data-theme=dark] .card-gradient-primary > .card-body {
    background: rgba(17,24,39,0.5);
}

[data-theme=dark] .card-gradient-service {
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
}

[data-theme=dark] .card-gradient-service > .card-body,
[data-theme=dark] .card-gradient-addons > .card-body,
[data-theme=dark] .card-gradient-notes > .card-body {
    background: rgba(31,41,55,0.8);
}

[data-theme=dark] .card-gradient-addons {
    background: linear-gradient(135deg, rgba(79,172,254,0.15) 0%, rgba(0,242,254,0.15) 100%);
}

[data-theme=dark] .card-gradient-notes {
    background: linear-gradient(135deg, rgba(240,147,251,0.15) 0%, rgba(245,87,108,0.15) 100%);
}

[data-theme=dark] .card-gradient-total {
    background: linear-gradient(135deg, rgba(17,153,142,0.2) 0%, rgba(56,239,125,0.2) 100%);
}

[data-theme=dark] .info-box-cyan {
    background: linear-gradient(135deg, rgba(14,165,233,0.15) 0%, rgba(2,132,199,0.15) 100%);
}

[data-theme=dark] .form-switch-spread .form-check-label {
    color: var(--theme-text-primary, #e5e7eb);
}

/* Button group styling for save buttons */
.btn-group-start {
    border-radius: 0.5rem 0 0 0.5rem !important;
}

.btn-group-end {
    border-radius: 0 0.5rem 0.5rem 0 !important;
}

/* Green gradient button */
.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

/* Modal header gradient */
.modal-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header-gradient .btn-close {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .modal-header-gradient {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}


/* ════════════════════════════════════════════════════════════════════════════
   NAVBAR - Theme Aware Header
   ════════════════════════════════════════════════════════════════════════════ */

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

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
    color: #ffffff !important;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}

/* Dropdown menus in navbar */
.navbar .dropdown-menu {
    background-color: var(--theme-bg-card);
    border-color: var(--theme-border);
    box-shadow: var(--theme-shadow-md);
}

.navbar .dropdown-item {
    color: var(--theme-text-primary);
}

.navbar .dropdown-item:hover {
    background-color: var(--theme-bg-hover);
    color: var(--theme-text-primary);
}

.navbar .dropdown-divider {
    border-color: var(--theme-border);
}

/* === NOTE BOX - Standard Notation Template ===
   Usage: <div class="note-box">
            <div class="d-flex align-items-start">
              <i class="fas fa-[icon] icon-primary fs-5 me-3 mt-1"></i>
              <div>
                <strong class="d-block">[Title]</strong>
                <small class="text-muted">[Description]</small>
              </div>
            </div>
          </div>
*/
.note-box {
    background-color: #e0f2fe;
    padding: 1rem;
    border-radius: 0.375rem;
}

[data-theme=dark] .note-box {
    background-color: rgba(14, 165, 233, 0.15);
}
.glass-container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ============================================================
   SITE INSPECTION - MISSION CONTROL DESIGN SYSTEM
   Complete redesign for pilot workflow management
   ============================================================ */

/* --- Variables --- */
.mission-control {
    --mc-bg: #0f172a;
    --mc-surface: #1e293b;
    --mc-surface-elevated: #334155;
    --mc-border: #475569;
    --mc-text: #f1f5f9;
    --mc-text-muted: #94a3b8;
    --mc-text-dim: #64748b;
    --mc-accent: #3b82f6;
    --mc-success: #10b981;
    --mc-warning: #f59e0b;
    --mc-danger: #ef4444;
    --mc-info: #06b6d4;
    --mc-radius: 12px;
    --mc-radius-sm: 8px;
    --mc-radius-lg: 16px;
    --mc-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --mc-transition: all 0.2s ease;
}

/* Light mode overrides */
[data-theme="light"] .mission-control {
    --mc-bg: #f8fafc;
    --mc-surface: #ffffff;
    --mc-surface-elevated: #f1f5f9;
    --mc-border: #e2e8f0;
    --mc-text: #0f172a;
    --mc-text-muted: #64748b;
    --mc-text-dim: #94a3b8;
    --mc-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- Base Layout --- */
.mission-control {
    min-height: 100vh;
    background: var(--mc-bg);
    color: var(--mc-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mc-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header --- */
.mc-header {
    background: var(--mc-surface);
    border-bottom: 1px solid var(--mc-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.mc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.mc-breadcrumb a {
    color: var(--mc-text-muted);
    text-decoration: none;
    transition: var(--mc-transition);
}

.mc-breadcrumb a:hover {
    color: var(--mc-accent);
}

.mc-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mc-title-badge {
    background: var(--mc-accent);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

/* --- Stats Bar --- */
.mc-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mc-stat {
    background: var(--mc-surface-elevated);
    padding: 0.5rem 1rem;
    border-radius: var(--mc-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.mc-stat-value {
    font-weight: 700;
    color: var(--mc-text);
}

.mc-stat-label {
    color: var(--mc-text-muted);
}

.mc-stat.success .mc-stat-value { color: var(--mc-success); }
.mc-stat.warning .mc-stat-value { color: var(--mc-warning); }
.mc-stat.danger .mc-stat-value { color: var(--mc-danger); }

/* --- Quick Actions --- */
.mc-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--mc-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--mc-transition);
    white-space: nowrap;
}

.mc-btn-primary {
    background: var(--mc-accent);
    color: white;
}

.mc-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

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

.mc-btn-success:hover {
    background: #059669;
}

.mc-btn-ghost {
    background: transparent;
    color: var(--mc-text-muted);
    border: 1px solid var(--mc-border);
}

.mc-btn-ghost:hover {
    background: var(--mc-surface-elevated);
    color: var(--mc-text);
}

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


/* --- Main Layout Grid --- */
.mc-layout {
    display: grid;
    grid-template-columns: 280px 1fr 380px;
    gap: 1rem;
    padding: 1rem 0;
    min-height: calc(100vh - 80px);
}

@media (max-width: 1200px) {
    .mc-layout {
        grid-template-columns: 1fr;
    }
    .mc-sidebar { display: none; }
    .mc-detail-panel { display: none; }
    .mc-detail-panel.mobile-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: var(--mc-bg);
        overflow-y: auto;
    }
}

/* --- Sidebar --- */
.mc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mc-card {
    background: var(--mc-surface);
    border-radius: var(--mc-radius);
    border: 1px solid var(--mc-border);
    overflow: hidden;
}

.mc-card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--mc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mc-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mc-text-muted);
    margin: 0;
}

.mc-card-body {
    padding: 1rem;
}

/* --- Route List --- */
.mc-route-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mc-route-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--mc-radius-sm);
    cursor: pointer;
    transition: var(--mc-transition);
    text-decoration: none;
    color: var(--mc-text);
}

.mc-route-item:hover {
    background: var(--mc-surface-elevated);
}

.mc-route-item.active {
    background: var(--mc-accent);
    color: white;
}

.mc-route-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--mc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--mc-surface-elevated);
}

.mc-route-item.active .mc-route-icon {
    background: rgba(255,255,255,0.2);
}

.mc-route-info {
    flex: 1;
    min-width: 0;
}

.mc-route-name {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-route-meta {
    font-size: 0.75rem;
    color: var(--mc-text-muted);
}

.mc-route-item.active .mc-route-meta {
    color: rgba(255,255,255,0.8);
}

.mc-route-count {
    background: var(--mc-surface-elevated);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mc-route-item.active .mc-route-count {
    background: rgba(255,255,255,0.2);
}

/* --- Filter Pills --- */
.mc-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mc-filter {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mc-transition);
    border: 1px solid var(--mc-border);
    background: transparent;
    color: var(--mc-text-muted);
}

.mc-filter:hover {
    border-color: var(--mc-accent);
    color: var(--mc-accent);
}

.mc-filter.active {
    background: var(--mc-accent);
    border-color: var(--mc-accent);
    color: white;
}

/* --- Flight Conditions --- */
.mc-conditions {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: var(--mc-radius);
    padding: 1rem;
    color: white;
}

.mc-conditions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.mc-conditions-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.mc-condition-item {
    background: rgba(255,255,255,0.1);
    border-radius: var(--mc-radius-sm);
    padding: 0.75rem;
    text-align: center;
}

.mc-condition-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.mc-condition-value {
    font-size: 1rem;
    font-weight: 700;
}

.mc-condition-value.good { color: #4ade80; }
.mc-condition-value.caution { color: #fbbf24; }
.mc-condition-value.bad { color: #f87171; }


/* --- Main Content --- */
.mc-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.mc-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.mc-search input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border-radius: var(--mc-radius-sm);
    border: 1px solid var(--mc-border);
    background: var(--mc-surface);
    color: var(--mc-text);
    font-size: 0.875rem;
    transition: var(--mc-transition);
}

.mc-search input:focus {
    outline: none;
    border-color: var(--mc-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.mc-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mc-text-dim);
}

/* --- Site List --- */
.mc-site-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mc-site-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--mc-surface);
    border-radius: var(--mc-radius);
    border: 1px solid var(--mc-border);
    cursor: pointer;
    transition: var(--mc-transition);
}

.mc-site-row:hover {
    border-color: var(--mc-accent);
    box-shadow: var(--mc-shadow);
}

.mc-site-row.selected {
    border-color: var(--mc-accent);
    background: rgba(59, 130, 246, 0.05);
}

.mc-site-row.completed {
    opacity: 0.6;
}

/* Status Indicator */
.mc-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mc-status-indicator.ready { background: var(--mc-success); box-shadow: 0 0 8px var(--mc-success); }
.mc-status-indicator.blocked { background: var(--mc-warning); box-shadow: 0 0 8px var(--mc-warning); }
.mc-status-indicator.critical { background: var(--mc-danger); box-shadow: 0 0 8px var(--mc-danger); }
.mc-status-indicator.completed { background: var(--mc-text-dim); }

/* Site Info */
.mc-site-info {
    min-width: 0;
}

.mc-site-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mc-site-id {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--mc-accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.mc-site-meta {
    font-size: 0.8125rem;
    color: var(--mc-text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mc-site-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Airspace Badge */
.mc-airspace {
    width: 48px;
    height: 48px;
    border-radius: var(--mc-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.mc-airspace-class {
    font-size: 1.25rem;
    line-height: 1;
}

.mc-airspace-ceiling {
    font-size: 0.625rem;
    opacity: 0.9;
}

.mc-airspace.class-g { background: linear-gradient(135deg, #059669, #047857); color: white; }
.mc-airspace.class-e { background: linear-gradient(135deg, #0891b2, #0e7490); color: white; }
.mc-airspace.class-d { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; }
.mc-airspace.class-c { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: white; }
.mc-airspace.class-b { background: linear-gradient(135deg, #dc2626, #b91c1c); color: white; }

/* Status Tags */
.mc-tags {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mc-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mc-tag-success { background: rgba(16, 185, 129, 0.15); color: var(--mc-success); }
.mc-tag-warning { background: rgba(245, 158, 11, 0.15); color: var(--mc-warning); }
.mc-tag-danger { background: rgba(239, 68, 68, 0.15); color: var(--mc-danger); }
.mc-tag-info { background: rgba(6, 182, 212, 0.15); color: var(--mc-info); }
.mc-tag-neutral { background: var(--mc-surface-elevated); color: var(--mc-text-muted); }

/* Quick Actions on Row */
.mc-row-actions {
    display: flex;
    gap: 0.375rem;
    opacity: 0;
    transition: var(--mc-transition);
}

.mc-site-row:hover .mc-row-actions {
    opacity: 1;
}

.mc-row-action {
    width: 36px;
    height: 36px;
    border-radius: var(--mc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mc-surface-elevated);
    color: var(--mc-text-muted);
    border: none;
    cursor: pointer;
    transition: var(--mc-transition);
    text-decoration: none;
}

.mc-row-action:hover {
    background: var(--mc-accent);
    color: white;
}

.mc-row-action.success:hover { background: var(--mc-success); }
.mc-row-action.warning:hover { background: var(--mc-warning); }


/* --- Detail Panel --- */
.mc-detail-panel {
    display: flex;
    flex-direction: column;
    background: var(--mc-surface);
    border-radius: var(--mc-radius);
    border: 1px solid var(--mc-border);
    overflow: hidden;
}

.mc-detail-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--mc-surface-elevated), var(--mc-surface));
    border-bottom: 1px solid var(--mc-border);
}

.mc-detail-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mc-detail-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mc-detail-status-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mc-detail-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.mc-detail-subtitle {
    font-size: 0.875rem;
    color: var(--mc-text-muted);
}

.mc-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Detail Sections */
.mc-detail-section {
    margin-bottom: 1.5rem;
}

.mc-detail-section:last-child {
    margin-bottom: 0;
}

.mc-detail-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mc-text-dim);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Info Grid */
.mc-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mc-info-item {
    background: var(--mc-surface-elevated);
    border-radius: var(--mc-radius-sm);
    padding: 0.75rem;
}

.mc-info-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--mc-text-dim);
    margin-bottom: 0.25rem;
}

.mc-info-value {
    font-size: 0.9375rem;
    font-weight: 600;
}

.mc-info-item.full-width {
    grid-column: span 2;
}

/* Compliance Chips */
.mc-compliance-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mc-compliance-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--mc-radius-sm);
    background: var(--mc-surface-elevated);
}

.mc-compliance-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.mc-compliance-icon.ok { background: rgba(16, 185, 129, 0.2); color: var(--mc-success); }
.mc-compliance-icon.pending { background: rgba(245, 158, 11, 0.2); color: var(--mc-warning); }
.mc-compliance-icon.blocked { background: rgba(239, 68, 68, 0.2); color: var(--mc-danger); }

.mc-compliance-text {
    flex: 1;
}

.mc-compliance-label {
    font-size: 0.8125rem;
    font-weight: 600;
}

.mc-compliance-detail {
    font-size: 0.75rem;
    color: var(--mc-text-muted);
}

/* Detail Actions */
.mc-detail-actions {
    padding: 1rem;
    border-top: 1px solid var(--mc-border);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.mc-detail-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 1rem 0.5rem;
    border-radius: var(--mc-radius-sm);
    background: var(--mc-surface-elevated);
    color: var(--mc-text);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--mc-transition);
    font-size: 0.75rem;
    font-weight: 600;
}

.mc-detail-action:hover {
    background: var(--mc-accent);
    color: white;
}

.mc-detail-action.primary {
    background: var(--mc-accent);
    color: white;
    grid-column: span 2;
}

.mc-detail-action.primary:hover {
    background: #2563eb;
}

.mc-detail-action.success { background: var(--mc-success); color: white; }
.mc-detail-action.success:hover { background: #059669; }

.mc-detail-action-icon {
    font-size: 1.25rem;
}


/* --- Mobile Bottom Nav --- */
.mc-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mc-surface);
    border-top: 1px solid var(--mc-border);
    padding: 0.5rem;
    z-index: 100;
}

@media (max-width: 1200px) {
    .mc-mobile-nav {
        display: flex;
        justify-content: space-around;
    }
    
    .mc-main {
        padding-bottom: 80px;
    }
}

.mc-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: var(--mc-radius-sm);
    color: var(--mc-text-muted);
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 600;
    transition: var(--mc-transition);
    background: none;
    border: none;
    cursor: pointer;
}

.mc-mobile-nav-item:hover,
.mc-mobile-nav-item.active {
    color: var(--mc-accent);
    background: rgba(59, 130, 246, 0.1);
}

.mc-mobile-nav-icon {
    font-size: 1.25rem;
}

/* --- Mobile Site Card (Alternative to Row) --- */
@media (max-width: 768px) {
    .mc-site-row {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.5rem 1rem;
    }
    
    .mc-site-info {
        grid-column: 2;
    }
    
    .mc-airspace {
        grid-row: span 2;
        align-self: start;
    }
    
    .mc-tags {
        grid-column: 2;
        justify-content: flex-start;
    }
    
    .mc-row-actions {
        grid-column: 1 / -1;
        opacity: 1;
        justify-content: flex-end;
        padding-top: 0.5rem;
        border-top: 1px solid var(--mc-border);
        margin-top: 0.5rem;
    }
}

/* --- Empty State --- */
.mc-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--mc-text-muted);
}

.mc-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.mc-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--mc-text);
}

.mc-empty-text {
    font-size: 0.875rem;
    max-width: 400px;
    margin: 0 auto;
}

/* --- Loading State --- */
.mc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.mc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--mc-border);
    border-top-color: var(--mc-accent);
    border-radius: 50%;
    animation: mc-spin 0.8s linear infinite;
}

@keyframes mc-spin {
    to { transform: rotate(360deg); }
}

/* --- Toast Notifications --- */
.mc-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mc-surface);
    color: var(--mc-text);
    padding: 1rem 1.5rem;
    border-radius: var(--mc-radius);
    box-shadow: var(--mc-shadow);
    border: 1px solid var(--mc-border);
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: mc-toast-in 0.3s ease;
}

@keyframes mc-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mc-toast.success { border-left: 4px solid var(--mc-success); }
.mc-toast.warning { border-left: 4px solid var(--mc-warning); }
.mc-toast.danger { border-left: 4px solid var(--mc-danger); }

/* --- Modal/Drawer --- */
.mc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mc-modal {
    background: var(--mc-surface);
    border-radius: var(--mc-radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--mc-shadow);
}

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

.mc-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.mc-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mc-surface-elevated);
    color: var(--mc-text-muted);
    border: none;
    cursor: pointer;
    transition: var(--mc-transition);
}

.mc-modal-close:hover {
    background: var(--mc-danger);
    color: white;
}

.mc-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.mc-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--mc-border);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* --- Photo Grid --- */
.mc-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.mc-photo-thumb {
    aspect-ratio: 1;
    border-radius: var(--mc-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--mc-transition);
}

.mc-photo-thumb:hover {
    border-color: var(--mc-accent);
}

.mc-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Progress Bar --- */
.mc-progress {
    height: 8px;
    background: var(--mc-surface-elevated);
    border-radius: 9999px;
    overflow: hidden;
}

.mc-progress-bar {
    height: 100%;
    background: var(--mc-accent);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.mc-progress-bar.success { background: var(--mc-success); }
.mc-progress-bar.warning { background: var(--mc-warning); }

/* --- Timer Display --- */
.mc-timer {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    padding: 1.5rem;
    background: var(--mc-surface-elevated);
    border-radius: var(--mc-radius);
    letter-spacing: 2px;
}

.mc-timer.active {
    background: linear-gradient(135deg, var(--mc-warning), #d97706);
    color: white;
    animation: mc-pulse 2s ease-in-out infinite;
}

@keyframes mc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(245, 158, 11, 0.2); }
}


/* --- Industry Badges --- */
.mc-industry-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--mc-radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
}

.mc-industry-badge.telecom { background: linear-gradient(135deg, #4f46e5, #3730a3); color: white; }
.mc-industry-badge.solar { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.mc-industry-badge.agriculture { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.mc-industry-badge.construction { background: linear-gradient(135deg, #f97316, #ea580c); color: white; }
.mc-industry-badge.insurance { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; }
.mc-industry-badge.real_estate { background: linear-gradient(135deg, #ec4899, #db2777); color: white; }
.mc-industry-badge.creative { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.mc-industry-badge.mapping { background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; }

/* --- Weather Widget --- */
.mc-weather {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--mc-surface-elevated);
    border-radius: var(--mc-radius-sm);
}

.mc-weather-icon {
    font-size: 1.5rem;
}

.mc-weather-temp {
    font-size: 1.25rem;
    font-weight: 700;
}

.mc-weather-detail {
    font-size: 0.75rem;
    color: var(--mc-text-muted);
}

/* --- Checklist --- */
.mc-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mc-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--mc-radius-sm);
    font-size: 0.875rem;
    transition: var(--mc-transition);
}

.mc-checklist-item:hover {
    background: var(--mc-surface-elevated);
}

.mc-checklist-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--mc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--mc-transition);
}

.mc-checklist-item.checked .mc-checklist-check {
    background: var(--mc-success);
    border-color: var(--mc-success);
    color: white;
}

.mc-checklist-item.blocked .mc-checklist-check {
    background: var(--mc-danger);
    border-color: var(--mc-danger);
    color: white;
}

/* --- Keyboard Shortcut Hints --- */
.mc-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: var(--mc-surface-elevated);
    border: 1px solid var(--mc-border);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mc-text-muted);
}

/* --- Animation Utilities --- */
.mc-fade-in {
    animation: mc-fade-in 0.3s ease;
}

@keyframes mc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mc-slide-up {
    animation: mc-slide-up 0.3s ease;
}

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

/* --- Print Styles --- */
@media print {
    .mc-sidebar,
    .mc-detail-panel,
    .mc-mobile-nav,
    .mc-row-actions {
        display: none !important;
    }
    
    .mc-layout {
        grid-template-columns: 1fr !important;
    }
    
    .mission-control {
        background: white !important;
        color: black !important;
    }
}

/* ============================================================
   END SITE INSPECTION - MISSION CONTROL DESIGN SYSTEM
   ============================================================ */

/* ============================================
   MISSION CONTROL - SITE ROW FIXES
   ============================================ */

/* Fix overlapping text in site rows */
.mc-site-row {
    grid-template-columns: 16px minmax(150px, 1fr) 50px auto auto;
}

.mc-site-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mc-site-meta {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.mc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 150px;
    justify-content: flex-end;
}

.mc-tag {
    white-space: nowrap;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

.mc-row-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Better mobile handling for site rows */
@media (max-width: 768px) {
    .mc-site-row {
        grid-template-columns: 12px 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .mc-site-info {
        grid-column: 2;
        grid-row: 1;
    }
    
    .mc-airspace {
        grid-column: 3;
        grid-row: 1 / span 2;
        width: 40px;
        height: 40px;
    }
    
    .mc-airspace-class {
        font-size: 1rem;
    }
    
    .mc-airspace-ceiling {
        font-size: 0.5rem;
    }
    
    .mc-tags {
        grid-column: 2;
        grid-row: 2;
        max-width: none;
        justify-content: flex-start;
    }
    
    .mc-row-actions {
        display: none;
    }
    
    .mc-site-meta {
        font-size: 0.75rem;
    }
}

/* ============================================
   MISSION CONTROL - SITE DETAIL PAGE
   ============================================ */

/* Apply Mission Control theme to site detail */
.detail-container {
    background: var(--mc-bg, #0f172a);
    min-height: 100vh;
}

.detail-header {
    background: var(--mc-surface, #1e293b) !important;
    border-bottom: 1px solid var(--mc-border, #334155);
}

.section {
    background: var(--mc-surface, #1e293b) !important;
    border: 1px solid var(--mc-border, #334155) !important;
    box-shadow: var(--mc-shadow, 0 4px 24px rgba(0, 0, 0, 0.3)) !important;
}

.section-header {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--mc-text, #f1f5f9) !important;
    border-bottom: 1px solid var(--mc-border, #334155) !important;
}

.section-content {
    background: var(--mc-surface, #1e293b) !important;
    color: var(--mc-text, #f1f5f9) !important;
}

.info-row {
    border-bottom-color: var(--mc-border, #334155) !important;
}

.info-label {
    color: var(--mc-text-muted, #94a3b8) !important;
}

.info-value {
    color: var(--mc-text, #f1f5f9) !important;
}

/* Flight Box Dark Theme */
.flight-box {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: var(--mc-accent, #3b82f6) !important;
}

.max-height, .airspace-class {
    color: var(--mc-accent, #3b82f6) !important;
}

/* Clearance Items Dark Theme */
.clearance-item {
    border-bottom-color: var(--mc-border, #334155) !important;
}

.clearance-item.is-pending {
    background: rgba(245, 158, 11, 0.1) !important;
}

.clearance-item.is-cleared {
    background: rgba(16, 185, 129, 0.1) !important;
}

.clearance-title {
    color: var(--mc-text, #f1f5f9) !important;
}

.clearance-reason {
    color: var(--mc-text-muted, #94a3b8) !important;
}

.clearance-form {
    background: rgba(0, 0, 0, 0.2) !important;
}

.clearance-form input, 
.clearance-form textarea {
    background: var(--mc-bg, #0f172a) !important;
    border-color: var(--mc-border, #334155) !important;
    color: var(--mc-text, #f1f5f9) !important;
}

/* Photo Grid Dark Theme */
.photo-grid img {
    border: 2px solid var(--mc-border, #334155);
    border-radius: var(--mc-radius-sm, 8px);
}

/* Notes Textarea Dark Theme */
#pilotNotes {
    background: var(--mc-bg, #0f172a) !important;
    border-color: var(--mc-border, #334155) !important;
    color: var(--mc-text, #f1f5f9) !important;
}

/* Toast Dark Theme */
.toast {
    background: var(--mc-surface, #1e293b) !important;
    color: var(--mc-text, #f1f5f9) !important;
    border: 1px solid var(--mc-border, #334155) !important;
}

/* Status Banner adjustments */
.status-banner {
    border-radius: 0;
}

/* Mobile Bottom Actions Dark Theme */
.bottom-actions {
    background: var(--mc-surface, #1e293b) !important;
    border-top: 1px solid var(--mc-border, #334155) !important;
}

/* Body background for detail page */
body:has(.detail-container) {
    background: var(--mc-bg, #0f172a) !important;
}

/* Site Detail - Desktop width adjustment */
@media (min-width: 769px) {
    .detail-container {
        max-width: 900px !important;
        padding: 20px;
    }
    
    .section {
        margin: 20px 0 !important;
    }
}

/* ============================================
   MISSION CONTROL - CONTAINER OVERFLOW FIX
   ============================================ */

.mission-control {
    overflow-x: hidden;
    max-width: 100vw;
}

.mc-layout {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mc-container {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

.mc-main {
    min-width: 0;
    overflow-x: hidden;
}

.mc-sidebar,
.mc-detail-panel {
    min-width: 0;
    overflow-x: hidden;
}

/* Ensure site rows dont overflow */
.mc-site-row {
    max-width: 100%;
    overflow: hidden;
}

.mc-site-info {
    overflow: hidden;
}

.mc-site-name {
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================
   MISSION CONTROL - SITE DETAIL V2
   ============================================ */

.mc-detail-header {
    background: var(--mc-surface);
    border-bottom: 1px solid var(--mc-border);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mc-detail-header-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mc-back-btn {
    color: var(--mc-text-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: var(--mc-radius-sm);
    transition: var(--mc-transition);
}

.mc-back-btn:hover {
    color: var(--mc-text);
    background: rgba(255,255,255,0.1);
}

.mc-detail-title {
    flex: 1;
    text-align: center;
}

.mc-detail-title h1 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--mc-text);
}

.mc-detail-id {
    font-size: 0.75rem;
    color: var(--mc-accent);
    font-family: monospace;
    background: rgba(59, 130, 246, 0.15);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.mc-detail-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.mc-detail-status.ready {
    background: var(--mc-success);
    color: white;
}

.mc-detail-status.blocked {
    background: var(--mc-warning);
    color: #000;
}

.mc-detail-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Quick Actions */
.mc-quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.mc-action-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1rem;
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
    color: var(--mc-text);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--mc-transition);
}

.mc-action-btn:hover {
    border-color: var(--mc-accent);
    background: rgba(59, 130, 246, 0.1);
}

.mc-action-btn.primary {
    background: var(--mc-accent);
    border-color: var(--mc-accent);
    color: white;
}

.mc-action-btn.primary:hover {
    background: #2563eb;
}

/* Flight Card */
.mc-flight-card {
    background: var(--mc-surface);
    border: 2px solid var(--mc-accent);
    border-radius: var(--mc-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.mc-flight-main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mc-border);
}

.mc-flight-ceiling {
    text-align: center;
}

.mc-ceiling-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--mc-accent);
    line-height: 1;
    display: block;
}

.mc-ceiling-unit {
    font-size: 1rem;
    color: var(--mc-text-muted);
    display: block;
}

.mc-ceiling-label {
    font-size: 0.75rem;
    color: var(--mc-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    display: block;
}

.mc-flight-airspace {
    text-align: center;
}

.mc-airspace-badge {
    width: 64px;
    height: 64px;
    border-radius: var(--mc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 0.5rem;
}

.mc-airspace-badge.class-g { background: linear-gradient(135deg, #059669, #047857); }
.mc-airspace-badge.class-e { background: linear-gradient(135deg, #0891b2, #0e7490); }
.mc-airspace-badge.class-d { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.mc-airspace-badge.class-c { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.mc-airspace-badge.class-b { background: linear-gradient(135deg, #ea580c, #c2410c); }

.mc-airspace-label {
    font-size: 0.75rem;
    color: var(--mc-text-dim);
}

.mc-flight-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.mc-flight-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: var(--mc-radius-sm);
}

.mc-flight-detail.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--mc-warning);
}

.mc-fd-label {
    font-size: 0.75rem;
    color: var(--mc-text-muted);
}

.mc-fd-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mc-text);
}

/* Sections */
.mc-section {
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.mc-section-header {
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--mc-border);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--mc-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mc-section-body {
    padding: 1rem;
}

/* Badges */
.mc-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    background: var(--mc-surface-elevated);
    color: var(--mc-text-muted);
}

.mc-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--mc-success);
}

.mc-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--mc-warning);
}

/* Clearance Items */
.mc-clearance-item {
    padding: 1rem;
    border-radius: var(--mc-radius-sm);
    margin-bottom: 0.5rem;
    background: rgba(0,0,0,0.2);
}

.mc-clearance-item:last-child {
    margin-bottom: 0;
}

.mc-clearance-item.cleared {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--mc-success);
}

.mc-clearance-item.pending {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--mc-warning);
}

.mc-clearance-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mc-clearance-info {
    display: flex;
    gap: 0.75rem;
}

.mc-clearance-icon {
    font-size: 1.25rem;
}

.mc-clearance-title {
    font-weight: 600;
    color: var(--mc-text);
    margin-bottom: 0.25rem;
}

.mc-clearance-reason {
    font-size: 0.8125rem;
    color: var(--mc-text-muted);
}

.mc-clearance-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
}

.mc-clearance-status.cleared {
    background: var(--mc-success);
    color: white;
}

.mc-clearance-status.pending {
    background: var(--mc-warning);
    color: #000;
}

.mc-clearance-form {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.mc-clearance-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--mc-bg);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-sm);
    color: var(--mc-text);
    font-size: 0.875rem;
}

.mc-btn-clear {
    padding: 0.5rem 1rem;
    background: var(--mc-success);
    border: none;
    border-radius: var(--mc-radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
}

.mc-btn-clear:hover {
    background: #059669;
}

/* Info Grid */
.mc-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mc-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mc-info-item.full {
    grid-column: 1 / -1;
}

.mc-info-label {
    font-size: 0.75rem;
    color: var(--mc-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mc-info-value {
    font-size: 0.9375rem;
    color: var(--mc-text);
    font-weight: 500;
}

.mc-info-value.mono {
    font-family: monospace;
    font-size: 0.8125rem;
}

/* Photo Grid */
.mc-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.mc-photo-thumb {
    aspect-ratio: 1;
    border-radius: var(--mc-radius-sm);
    overflow: hidden;
    border: 2px solid var(--mc-border);
}

.mc-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-photo-thumb:hover {
    border-color: var(--mc-accent);
}

/* Empty State */
.mc-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--mc-text-muted);
}

.mc-btn-small {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--mc-accent);
    border: none;
    border-radius: var(--mc-radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Notes */
.mc-notes-input {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    background: var(--mc-bg);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-sm);
    color: var(--mc-text);
    font-size: 0.9375rem;
    resize: vertical;
    margin-bottom: 0.75rem;
}

.mc-btn-save {
    padding: 0.625rem 1.25rem;
    background: var(--mc-accent);
    border: none;
    border-radius: var(--mc-radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

.mc-btn-save:hover {
    background: #2563eb;
}

/* Toast */
.mc-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--mc-surface);
    color: var(--mc-text);
    padding: 0.75rem 1.5rem;
    border-radius: var(--mc-radius);
    border: 1px solid var(--mc-border);
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mc-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .mc-detail-header-inner {
        flex-wrap: wrap;
    }

    .mc-detail-title {
        order: 3;
        flex-basis: 100%;
        text-align: left;
        margin-top: 0.5rem;
    }

    .mc-flight-main {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mc-info-grid {
        grid-template-columns: 1fr;
    }

    .mc-clearance-form {
        flex-direction: column;
    }

    .mc-quick-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .mc-action-btn {
        flex: 0 0 auto;
    }
}

/* ============================================
   FIX: Always show action buttons on site tiles
   ============================================ */
.mc-row-actions {
    opacity: 1 !important;
}

/* Pilot Briefing Styles */
.mc-pilot-briefing {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--mc-text);
}

.mc-pilot-briefing p {
    margin: 0 0 0.75rem 0;
}

.mc-pilot-briefing p:last-child {
    margin-bottom: 0;
}

.mc-pilot-briefing .text-success {
    color: var(--mc-success);
}

.mc-pilot-briefing .text-warning {
    color: var(--mc-warning);
}

.mc-pilot-briefing .text-danger {
    color: var(--mc-danger);
}

.mc-pilot-briefing strong {
    color: var(--mc-text);
}

.mc-pilot-briefing em {
    color: var(--mc-text-muted);
}

/* ============================================
   COLLECTION PAGE FIXES
   ============================================ */

/* Fix header scroll issue - ensure proper height */
.mc-header {
    overflow: visible !important;
    min-height: auto;
}

.mc-header-inner {
    overflow: visible !important;
}

/* Flight Conditions - always visible, themed */
.mc-conditions {
    background: var(--mc-surface) !important;
    border: 1px solid var(--mc-border) !important;
    border-radius: var(--mc-radius) !important;
}

.mc-conditions-header {
    background: transparent !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid var(--mc-border) !important;
    cursor: default !important;
}

.mc-conditions-title {
    color: var(--mc-text) !important;
    font-weight: 600 !important;
}

.mc-conditions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    padding: 1rem !important;
    background: var(--mc-surface) !important;
}

.mc-condition-item {
    background: rgba(0,0,0,0.2) !important;
    padding: 0.75rem !important;
    border-radius: var(--mc-radius-sm) !important;
    text-align: center;
}

.mc-condition-label {
    font-size: 0.7rem !important;
    color: var(--mc-text-dim) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.25rem !important;
}

.mc-condition-value {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--mc-text) !important;
}

.mc-condition-value.good {
    color: var(--mc-success) !important;
}

.mc-condition-value.caution {
    color: var(--mc-warning) !important;
}

.mc-condition-value.bad {
    color: var(--mc-danger) !important;
}

/* Left border styling for status indicators */
.mc-site-row.has-blockers {
    border-left: 3px solid var(--mc-warning) !important;
}

.mc-site-row.completed {
    border-left: 3px solid var(--mc-text-dim) !important;
}

.mc-site-row:not(.has-blockers):not(.completed) {
    border-left: 3px solid var(--mc-success) !important;
}

/* Clearance items left borders */
.mc-clearance-item.pending {
    border-left: 3px solid var(--mc-warning) !important;
}

.mc-clearance-item.cleared {
    border-left: 3px solid var(--mc-success) !important;
}

/* Route cards left borders */
.mc-route-item.active {
    border-left: 3px solid var(--mc-accent) !important;
}

/* Section borders */
.mc-section {
    border-left: 3px solid var(--mc-accent) !important;
}

/* ============================================
   COLLECTION PAGE FIXES - v15
   ============================================ */

/* 1. Flight Conditions - Better Contrast */
.mc-conditions {
    background: var(--mc-surface) !important;
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
    padding: 1rem;
}

.mc-conditions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.mc-conditions-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--mc-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 2. Fix time wrapping */
.mc-conditions-time {
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--mc-text-muted);
    white-space: nowrap;
    margin-left: 0.5rem;
}

.mc-conditions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.mc-condition-item {
    background: var(--mc-surface-elevated);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-sm);
    padding: 0.625rem;
    text-align: center;
}

.mc-condition-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mc-text-muted);
    margin-bottom: 0.25rem;
}

.mc-condition-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--mc-text);
}

.mc-condition-value.good { color: var(--mc-success) !important; }
.mc-condition-value.caution { color: var(--mc-warning) !important; }
.mc-condition-value.bad { color: var(--mc-danger) !important; }

/* 5. Remove orange dot - use left border only */
.mc-status-indicator {
    display: none !important;
}

/* Enhanced left border status */
.mc-site-row {
    border-left: 4px solid var(--mc-success) !important;
    position: relative;
}

.mc-site-row.has-blockers {
    border-left: 4px solid var(--mc-warning) !important;
}

.mc-site-row.completed {
    border-left: 4px solid var(--mc-text-dim) !important;
    opacity: 0.7;
}

/* 6. Prominent Airspace Class Display */
.mc-airspace {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 60px;
    border-radius: var(--mc-radius);
    padding: 0.5rem;
    flex-shrink: 0;
}

.mc-airspace-class {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.mc-airspace-ceiling {
    font-size: 0.6875rem;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 0.125rem;
}

/* Ensure airspace badge colors */
.mc-airspace.class-g { background: linear-gradient(135deg, #059669, #047857); color: white; }
.mc-airspace.class-e { background: linear-gradient(135deg, #0891b2, #0e7490); color: white; }
.mc-airspace.class-d { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; }
.mc-airspace.class-c { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: white; }
.mc-airspace.class-b { background: linear-gradient(135deg, #dc2626, #b91c1c); color: white; }

/* Site row layout adjustment for prominent airspace */
.mc-site-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

/* Airspace first in the layout */
.mc-site-row .mc-airspace {
    order: -1;
}

/* 7. Forecast handling */
.mc-forecast-unavailable {
    color: var(--mc-text-muted);
    font-style: italic;
}

/* Mobile adjustments for airspace */
@media (max-width: 768px) {
    .mc-airspace {
        min-width: 55px;
        min-height: 50px;
    }

    .mc-airspace-class {
        font-size: 1.5rem;
    }

    .mc-airspace-ceiling {
        font-size: 0.5625rem;
    }
}

/* Flight Condition Values - High Contrast Fix v16 */
.mc-condition-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff !important;
}

.mc-condition-value.good { 
    color: #4ade80 !important;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.mc-condition-value.caution { 
    color: #fcd34d !important;
    text-shadow: 0 0 10px rgba(252, 211, 77, 0.5);
}

.mc-condition-value.bad { 
    color: #f87171 !important; 
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

.mc-condition-label {
    color: #94a3b8 !important;
}

/* Site ID Prominent Display v17 */
.mc-site-name {
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: var(--mc-text) !important;
    letter-spacing: 0.5px;
    font-family: monospace;
}

/* Uniform Square Issue Badges v18 */
.mc-tag-warning {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    border-radius: 4px !important;
    background: var(--mc-warning) !important;
    color: #000 !important;
}

.mc-tag-success {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    background: var(--mc-success) !important;
    color: #fff !important;
}

/* Action Buttons - Right Aligned, Uniform Size v19 */
.mc-row-actions {
    display: flex !important;
    gap: 0.5rem;
    margin-left: auto !important;
    flex-shrink: 0;
    opacity: 1 !important;
}

.mc-row-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    font-size: 1.125rem !important;
    background: var(--mc-surface-elevated) !important;
    border: 1px solid var(--mc-border) !important;
    border-radius: var(--mc-radius-sm) !important;
    color: var(--mc-text) !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mc-row-action:hover {
    background: var(--mc-accent) !important;
    border-color: var(--mc-accent) !important;
    color: white !important;
}

.mc-row-action.success {
    background: var(--mc-success) !important;
    border-color: var(--mc-success) !important;
    color: white !important;
}

.mc-row-action.success:hover {
    background: #059669 !important;
}

/* Issue Badges - 3x3 Grid Stack v20 */
.mc-tags {
    display: grid !important;
    grid-template-columns: repeat(3, 24px);
    grid-template-rows: repeat(3, 24px);
    gap: 2px !important;
    width: 78px;
    flex-shrink: 0;
    align-content: center;
}

.mc-tag {
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Issue Badges - 3x2 Grid (max 6) v21 */
.mc-tags {
    display: grid !important;
    grid-template-columns: repeat(3, 24px) !important;
    grid-template-rows: repeat(2, 24px) !important;
    gap: 2px !important;
    width: 78px !important;
    height: 50px !important;
    flex-shrink: 0;
    align-content: center;
    overflow: hidden;
}

/* =============================================
   FLIGHT CONDITIONS - Proper Themed v22
   ============================================= */
.mc-conditions {
    background: var(--mc-surface) !important;
    border: 1px solid var(--mc-border) !important;
    border-radius: var(--mc-radius) !important;
    padding: 1rem !important;
    margin-top: 1rem;
}

.mc-conditions-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--mc-border) !important;
}

.mc-conditions-title {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: var(--mc-text) !important;
}

.mc-conditions-time {
    font-size: 0.75rem !important;
    color: var(--mc-text-muted) !important;
    margin-left: 0.5rem !important;
}

.mc-conditions-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
}

.mc-condition-item {
    background: var(--mc-bg) !important;
    border: 1px solid var(--mc-border) !important;
    border-radius: var(--mc-radius-sm) !important;
    padding: 0.75rem 0.5rem !important;
    text-align: center !important;
}

.mc-condition-label {
    font-size: 0.625rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--mc-text-muted) !important;
    margin-bottom: 0.375rem !important;
    display: block !important;
}

.mc-condition-value {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: var(--mc-text) !important;
}

.mc-condition-value.good {
    color: #4ade80 !important;
}

.mc-condition-value.caution {
    color: #fbbf24 !important;
}

.mc-condition-value.bad {
    color: #ef4444 !important;
}

/* =============================================
   TABLE VIEW - Compact Rows
   ============================================= */
.mc-site-list.table-view .mc-site-row {
    padding: 0.5rem 0.75rem !important;
    gap: 0.75rem !important;
    border-radius: 0 !important;
    margin-bottom: 1px !important;
    border-left-width: 3px !important;
}

.mc-site-list.table-view .mc-site-row:first-child {
    border-radius: var(--mc-radius) var(--mc-radius) 0 0 !important;
}

.mc-site-list.table-view .mc-site-row:last-child {
    border-radius: 0 0 var(--mc-radius) var(--mc-radius) !important;
}

.mc-site-list.table-view .mc-airspace {
    min-width: 45px !important;
    min-height: 40px !important;
    padding: 0.25rem !important;
}

.mc-site-list.table-view .mc-airspace-class {
    font-size: 1.25rem !important;
}

.mc-site-list.table-view .mc-airspace-ceiling {
    font-size: 0.5rem !important;
}

.mc-site-list.table-view .mc-site-name {
    font-size: 0.875rem !important;
}

.mc-site-list.table-view .mc-site-meta {
    display: none !important;
}

.mc-site-list.table-view .mc-tags {
    grid-template-columns: repeat(3, 20px) !important;
    grid-template-rows: repeat(2, 20px) !important;
    width: 66px !important;
    height: 42px !important;
}

.mc-site-list.table-view .mc-tag {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.625rem !important;
}

.mc-site-list.table-view .mc-row-action {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 0.875rem !important;
}

/* Active view button */
.mc-btn.active {
    background: var(--mc-accent) !important;
    color: white !important;
}

/* =============================================
   LEGEND MODAL
   ============================================= */
.mc-legend-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.mc-legend-modal.show {
    display: flex !important;
}

.mc-legend-content {
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
}

.mc-legend-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mc-text);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mc-legend-close {
    background: none;
    border: none;
    color: var(--mc-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}

.mc-legend-grid {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.mc-legend-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 4px;
    background: var(--mc-warning);
    color: #000;
}

.mc-legend-text {
    font-size: 0.8125rem;
    color: var(--mc-text);
}

.mc-legend-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mc-border);
}

.mc-legend-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mc-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Site Title Color Matches Border v23 */
.mc-site-row .mc-site-name {
    color: var(--mc-success) !important;
}

.mc-site-row.has-blockers .mc-site-name {
    color: var(--mc-warning) !important;
}

.mc-site-row.completed .mc-site-name {
    color: var(--mc-text-dim) !important;
}

/* Compliance Issue Clearance */
.mc-compliance-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.mc-compliance-item:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: translateX(4px);
}

.mc-compliance-action {
    font-size: 0.6875rem;
    color: var(--mc-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--mc-radius-sm);
    white-space: nowrap;
}

.mc-compliance-item:hover .mc-compliance-action {
    background: var(--mc-accent);
    color: white;
}

/* Weather Section Styles */
.mc-weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mc-weather-item {
    background: rgba(0,0,0,0.2);
    border-radius: var(--mc-radius-sm);
    padding: 0.75rem;
    text-align: center;
}

.mc-weather-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mc-text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.mc-weather-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mc-text);
}

.mc-weather-value.good { color: var(--mc-success); }
.mc-weather-value.caution { color: var(--mc-warning); }
.mc-weather-value.bad { color: var(--mc-danger); }

.mc-wind-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mc-wind-compass {
    transition: transform 0.3s ease;
}

.mc-wind-compass svg {
    display: block;
}

.mc-flight-assessment {
    padding: 0.75rem 1rem;
    border-radius: var(--mc-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.mc-flight-assessment.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--mc-success);
}

.mc-flight-assessment.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--mc-warning);
}

.mc-flight-assessment.danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--mc-danger);
}

.mc-assessment-status {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mc-flight-assessment.success .mc-assessment-status { color: var(--mc-success); }
.mc-flight-assessment.warning .mc-assessment-status { color: var(--mc-warning); }
.mc-flight-assessment.danger .mc-assessment-status { color: var(--mc-danger); }

.mc-assessment-issues {
    font-size: 0.75rem;
    color: var(--mc-text-muted);
}

.mc-weather-loading, .mc-weather-error {
    text-align: center;
    padding: 2rem;
    color: var(--mc-text-muted);
}

.mc-weather-error {
    color: var(--mc-danger);
}

.mc-refresh-btn {
    background: none;
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-sm);
    color: var(--mc-text-muted);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.mc-refresh-btn:hover {
    border-color: var(--mc-accent);
    color: var(--mc-accent);
}

/* Optimal Flight Windows */
.mc-windows-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mc-window-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: var(--mc-radius-sm);
    border-left: 3px solid var(--mc-border);
}

.mc-window-item.excellent { border-left-color: var(--mc-success); }
.mc-window-item.good { border-left-color: var(--mc-accent); }
.mc-window-item.fair { border-left-color: var(--mc-warning); }

.mc-window-time {
    font-weight: 600;
    color: var(--mc-text);
    min-width: 80px;
}

.mc-window-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--mc-text-muted);
}

.mc-window-score {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: rgba(255,255,255,0.1);
    color: var(--mc-text);
}

.mc-window-item.excellent .mc-window-score { background: var(--mc-success); color: white; }
.mc-window-item.good .mc-window-score { background: var(--mc-accent); color: white; }

@media (max-width: 600px) {
    .mc-weather-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mc-window-details {
        display: none;
    }
}

/* Compact Weather Panel Styles */
.mc-weather-compact {
    padding: 0.5rem 0;
}

.mc-weather-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0.75rem;
}

.mc-wx-item {
    text-align: center;
}

.mc-wx-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mc-text);
    display: block;
}

.mc-wx-val.good { color: var(--mc-success); }
.mc-wx-val.caution { color: var(--mc-warning); }
.mc-wx-val.bad { color: var(--mc-danger); }

.mc-wx-lbl {
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--mc-text-muted);
}

.mc-flight-status {
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--mc-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mc-flight-status.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--mc-success);
}

.mc-flight-status.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--mc-warning);
}

.mc-flight-status.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--mc-danger);
}

.mc-status-issues {
    font-weight: 400;
    font-size: 0.6875rem;
}

.mc-windows-compact {
    padding-top: 0.5rem;
    border-top: 1px solid var(--mc-border);
}

.mc-window-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    background: rgba(255,255,255,0.1);
    color: var(--mc-text);
}

.mc-window-tag.excellent { background: var(--mc-success); color: white; }
.mc-window-tag.good { background: var(--mc-accent); color: white; }
.mc-window-tag.fair { background: var(--mc-warning); color: #000; }

.mc-refresh-btn-sm {
    background: none;
    border: none;
    color: var(--mc-text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0 0.25rem;
    margin-left: 0.5rem;
}

.mc-refresh-btn-sm:hover {
    color: var(--mc-accent);
}


/* ════════════════════════════════════════════════════════════════════════════
   EQUIPMENT MANAGEMENT PAGE STYLES
   ════════════════════════════════════════════════════════════════════════════ */

/* Equipment/Fleet Header */
.equipment-header {
    background: var(--theme-gradient-header);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: var(--theme-text-inverse);
    box-shadow: var(--theme-shadow-md);
}

.equipment-header h1 {
    color: var(--theme-text-inverse);
    margin-bottom: 0.5rem;
}

.equipment-header p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* Equipment Stats Grid */
.equipment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.equipment-stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.equipment-stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--theme-text-inverse);
}

.equipment-stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--theme-text-inverse);
}

/* Drone/Equipment Cards */
.equipment-card {
    background: var(--theme-bg-card);
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
    transition: all 0.2s ease;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.equipment-card:hover {
    box-shadow: var(--theme-shadow-md);
    transform: translateY(-2px);
}

.equipment-card-header {
    background: var(--theme-bg-card-secondary);
    padding: 1.25rem;
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.equipment-icon {
    width: 50px;
    height: 50px;
    background: var(--theme-gradient-header);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--theme-text-inverse);
    margin-right: 1rem;
    flex-shrink: 0;
}

.equipment-title {
    flex-grow: 1;
}

.equipment-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0.2rem;
}

.equipment-subtitle {
    font-size: 0.85rem;
    color: var(--theme-text-secondary);
    font-family: 'Courier New', monospace;
}

.equipment-status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.equipment-status-active {
    background: var(--theme-success-subtle);
    color: var(--theme-success);
    border: 1px solid var(--theme-success);
}

.equipment-status-maintenance {
    background: var(--theme-warning-subtle);
    color: var(--theme-warning);
    border: 1px solid var(--theme-warning);
}

.equipment-status-retired {
    background: var(--theme-bg-card-secondary);
    color: var(--theme-text-muted);
    border: 1px solid var(--theme-border);
}

.equipment-card-body {
    padding: 1.25rem;
}

.equipment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.equipment-info-item {
    display: flex;
    flex-direction: column;
}

.equipment-info-label {
    font-size: 0.7rem;
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.equipment-info-value {
    font-size: 0.95rem;
    color: var(--theme-text-primary);
    font-weight: 500;
}

.equipment-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-border-light);
}

/* Empty State */
.equipment-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--theme-bg-card);
    border-radius: 12px;
    border: 2px dashed var(--theme-border);
}

.equipment-empty-icon {
    font-size: 3rem;
    color: var(--theme-text-muted);
    margin-bottom: 1rem;
}

.equipment-empty p {
    color: var(--theme-text-secondary);
    margin-bottom: 1rem;
}

/* Section Headers */
.equipment-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--theme-border-light);
}

.equipment-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--theme-text-primary);
}

/* Battery Cards */
.battery-card {
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.battery-card:hover {
    box-shadow: var(--theme-shadow);
}

.battery-card.status-good {
    border-left: 3px solid var(--theme-success);
}

.battery-card.status-fair {
    border-left: 3px solid var(--theme-warning);
}

.battery-card.status-poor {
    border-left: 3px solid var(--theme-danger);
}

.battery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.battery-name {
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0.2rem;
}

.battery-drone {
    font-size: 0.8rem;
    color: var(--theme-text-secondary);
}

.battery-cycle-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--theme-text-secondary);
    margin-bottom: 0.5rem;
}

.battery-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--theme-bg-card-secondary);
    overflow: hidden;
}

.battery-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.battery-progress-bar.good {
    background: var(--theme-success);
}

.battery-progress-bar.fair {
    background: var(--theme-warning);
}

.battery-progress-bar.poor {
    background: var(--theme-danger);
}

.battery-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Maintenance Log Table */
.maintenance-table {
    background: var(--theme-bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--theme-border);
}

.maintenance-table th {
    background: var(--theme-table-header);
    color: var(--theme-text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--theme-border);
}

.maintenance-table td {
    padding: 0.75rem 1rem;
    color: var(--theme-text-primary);
    border-bottom: 1px solid var(--theme-border-light);
    vertical-align: middle;
}

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

.maintenance-type-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.maintenance-type-preventive {
    background: var(--theme-info-subtle);
    color: var(--theme-info);
}

.maintenance-type-repair {
    background: var(--theme-warning-subtle);
    color: var(--theme-warning);
}

.maintenance-type-inspection {
    background: var(--theme-primary-subtle);
    color: var(--theme-primary);
}

.maintenance-type-calibration {
    background: var(--theme-success-subtle);
    color: var(--theme-success);
}

/* Alert for expiring items */
.equipment-alert {
    background: var(--theme-warning-subtle);
    border: 1px solid var(--theme-warning);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.equipment-alert-icon {
    color: var(--theme-warning);
    font-size: 1.25rem;
}

.equipment-alert-text {
    color: var(--theme-text-primary);
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .equipment-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .equipment-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .equipment-stat-value {
        font-size: 1.5rem;
    }
    
    .equipment-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .equipment-icon {
        margin-right: 0;
    }
    
    .equipment-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .equipment-actions {
        flex-wrap: wrap;
    }
    
    .battery-actions {
        flex-direction: column;
    }
}


/* Thin progress bar for battery tracking */
.progress-thin {
    height: 6px;
}

/* ════════════════════════════════════════════════════════════════════════════
   FORM PAGE STYLES (Add/Edit pages)
   ════════════════════════════════════════════════════════════════════════════ */

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: var(--theme-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow-sm);
}

.form-section-header {
    border-bottom: 1px solid var(--theme-border-light);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0.25rem;
}

.form-section-description {
    font-size: 0.85rem;
    color: var(--theme-text-secondary);
}

.help-text {
    font-size: 0.8rem;
    color: var(--theme-text-secondary);
    margin-top: 0.25rem;
}

.required-indicator {
    color: var(--theme-danger);
    font-weight: bold;
}


/* ════════════════════════════════════════════════════════════════════════════
   PROFILE PAGE STYLES
   ════════════════════════════════════════════════════════════════════════════ */

.profile-header {
    text-align: center;
    padding: 2rem 0 3rem;
}

.profile-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--theme-text-primary);
}

.profile-header p {
    color: var(--theme-text-secondary);
    font-size: 1rem;
}

.section-card {
    background: var(--theme-bg-card);
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow-sm);
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.section-card:hover {
    box-shadow: var(--theme-shadow);
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--theme-border-light);
    background: var(--theme-bg-card-secondary);
    border-radius: 12px 12px 0 0;
}

.section-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header .icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--theme-primary-subtle);
}

.section-header .icon i {
    color: var(--theme-primary);
}

.section-body {
    padding: 1.5rem;
}

.logo-preview-card {
    background: var(--theme-bg-card-secondary);
    border: 2px dashed var(--theme-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.logo-preview-card:hover {
    border-color: var(--theme-primary);
}

.current-logo {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
}

/* ════════════════════════════════════════════════════════════════════════════
   AUTH PAGES (Login, Register, Forgot Password)
   ════════════════════════════════════════════════════════════════════════════ */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--theme-bg-page);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--theme-bg-card);
    border-radius: 16px;
    box-shadow: var(--theme-shadow-lg);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--theme-text-secondary);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--theme-text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--theme-border);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-border-light);
}

/* ════════════════════════════════════════════════════════════════════════════
   PRICING PAGE STYLES
   ════════════════════════════════════════════════════════════════════════════ */

.pricing-header {
    text-align: center;
    padding: 3rem 0;
}

.pricing-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 1rem;
}

.pricing-header p {
    color: var(--theme-text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
}

.pricing-card:hover {
    box-shadow: var(--theme-shadow-md);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 1px var(--theme-primary);
}

.pricing-card .badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theme-primary);
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--theme-text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--theme-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li i {
    color: var(--theme-success);
}


/* ════════════════════════════════════════════════════════════════════════════
   QUOTES PAGE STYLES
   ════════════════════════════════════════════════════════════════════════════ */

.quotes-card {
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    box-shadow: var(--theme-shadow);
}

.quotes-card-header {
    background: var(--theme-gradient-header);
    color: var(--theme-text-inverse);
    border-radius: 12px 12px 0 0;
    padding: 1.25rem;
}

.quotes-card-header .nav-pills .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
}

.quotes-card-header .nav-pills .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.quotes-card-header .nav-pills .nav-link.active {
    color: var(--theme-primary);
    background: white;
}

.btn-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-gradient-info:hover {
    background: linear-gradient(135deg, #3d9be0 0%, #00d4e0 100%);
    color: white;
}

.btn-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-gradient-success:hover {
    background: linear-gradient(135deg, #0d7a71 0%, #2dd668 100%);
    color: white;
}

.btn-gradient-primary {
    background: var(--theme-gradient-header);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-gradient-primary:hover {
    opacity: 0.9;
    color: white;
}

.delete-modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.delete-modal-content {
    border: none;
    box-shadow: var(--theme-shadow-lg);
}

.delete-modal-body {
    padding: 2rem;
}

.delete-modal-footer {
    border: none;
    background: var(--theme-bg-card-secondary);
}


/* Table Utilities */
.th-checkbox-col {
    width: 40px;
}

/* Knowledge Base Sources List */
.kb-sources-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Progress Bar Utilities */
.progress-sm {
    height: 8px;
}
/* ════════════════════════════════════════════════════════════════════════════
   PUBLIC LANDING PAGE STYLES
   Clean, minimal design inspired by the auth pages
   ════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   Beta Banner
   ───────────────────────────────────────────────────────────────────────────── */

/* ════════════════════════════════════════════════════════════════════════════
   LANDING PAGE STYLES - Professional SaaS Design
   ════════════════════════════════════════════════════════════════════════════
   
   Design Principles:
   - Generous spacing (minimum 2rem padding on sections)
   - High contrast (dark text on light, light text on dark)
   - CSS variables for consistency
   - Clean, minimal aesthetic
   
   ════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   Landing Page CSS Variables
   ───────────────────────────────────────────────────────────────────────────── */

:root {
    /* Landing Color Palette */
    --landing-primary: #667eea;
    --landing-primary-dark: #5568d3;
    --landing-primary-darker: #4a5bc4;
    --landing-secondary: #764ba2;
    --landing-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Text Colors */
    --landing-text-dark: #1a1a2e;
    --landing-text-muted: #64748b;
    --landing-text-light: #94a3b8;
    
    /* Background Colors */
    --landing-bg-light: #f8fafc;
    --landing-bg-white: #ffffff;
    --landing-bg-card: #ffffff;
    
    /* Spacing */
    --landing-section-padding: 5rem;
    --landing-card-padding: 2rem;
    --landing-gap-large: 3rem;
    --landing-gap-medium: 2rem;
    --landing-gap-small: 1rem;
    
    /* Border Radius */
    --landing-radius-small: 8px;
    --landing-radius-medium: 12px;
    --landing-radius-large: 16px;
    --landing-radius-pill: 50px;
    
    /* Shadows */
    --landing-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --landing-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --landing-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Beta Banner - Green Gradient with White Text
   ───────────────────────────────────────────────────────────────────────────── */

.landing-beta-banner {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    padding: 1rem 0;
}

.landing-beta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.landing-beta-pulse {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: landing-pulse 2s infinite;
}

@keyframes landing-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); 
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); 
    }
}

.landing-beta-text {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.landing-beta-seats {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--landing-radius-pill);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.landing-beta-cta {
    background: white;
    color: #059669;
    padding: 0.5rem 1.5rem;
    border-radius: var(--landing-radius-pill);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.landing-beta-cta:hover {
    transform: scale(1.05);
    color: #047857;
    text-decoration: none;
    box-shadow: var(--landing-shadow-md);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hero Section - Light Background with Dark Text
   ───────────────────────────────────────────────────────────────────────────── */

.landing-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background: var(--landing-bg-light);
}

.landing-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.landing-logo {
    margin-bottom: var(--landing-gap-medium);
}

.landing-logo img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.landing-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--landing-text-dark);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.landing-gradient-text {
    background: var(--landing-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 1.25rem;
    color: var(--landing-text-muted);
    margin-bottom: var(--landing-gap-large);
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   User Type Selector - White Cards on Light Background
   ───────────────────────────────────────────────────────────────────────────── */

.landing-user-section {
    margin: var(--landing-gap-large) 0;
}

.landing-user-label {
    color: var(--landing-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.landing-user-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--landing-gap-small);
    margin-bottom: var(--landing-gap-medium);
}

.landing-user-card {
    background: var(--landing-bg-card);
    border: 2px solid #e2e8f0;
    border-radius: var(--landing-radius-large);
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.landing-user-card:hover {
    border-color: var(--landing-primary);
    box-shadow: var(--landing-shadow-md);
    transform: translateY(-4px);
    text-decoration: none;
}

.landing-user-icon {
    width: 60px;
    height: 60px;
    background: var(--landing-gradient);
    border-radius: var(--landing-radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.landing-user-icon i {
    font-size: 1.5rem;
    color: white;
}

.landing-user-card h3 {
    color: var(--landing-text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.landing-user-card p {
    color: var(--landing-text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Stats Section - White Card with Dark Text
   ───────────────────────────────────────────────────────────────────────────── */

.landing-stats {
    background: var(--landing-bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--landing-radius-large);
    padding: var(--landing-card-padding);
    margin-top: var(--landing-gap-large);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--landing-gap-medium);
    box-shadow: var(--landing-shadow-sm);
}

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

.landing-stat-value {
    color: var(--landing-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.landing-stat-label {
    color: var(--landing-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Features Section - White Background with Dark Text
   ───────────────────────────────────────────────────────────────────────────── */

.landing-features {
    padding: var(--landing-section-padding) 1rem;
    background: var(--landing-bg-white);
}

.landing-section-header {
    text-align: center;
    margin-bottom: var(--landing-gap-large);
}

.landing-section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--landing-text-dark);
    margin-bottom: 1rem;
}

.landing-section-header p {
    color: var(--landing-text-muted);
    font-size: 1.1rem;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--landing-gap-medium);
    max-width: 1000px;
    margin: 0 auto;
}

.landing-feature-card {
    background: var(--landing-bg-light);
    border: 1px solid #e2e8f0;
    border-radius: var(--landing-radius-large);
    padding: var(--landing-card-padding);
    transition: all 0.3s ease;
}

.landing-feature-card:hover {
    box-shadow: var(--landing-shadow-md);
    transform: translateY(-4px);
}

.landing-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--landing-radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.landing-feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.landing-icon-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.landing-icon-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.landing-icon-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.landing-icon-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.landing-icon-pink {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.landing-icon-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.landing-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--landing-text-dark);
    margin-bottom: 0.75rem;
}

.landing-feature-card p {
    color: var(--landing-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA Section - Gradient Background with White Text
   ───────────────────────────────────────────────────────────────────────────── */

.landing-cta {
    background: var(--landing-gradient);
    padding: var(--landing-section-padding) 1rem;
    text-align: center;
}

.landing-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.landing-cta p {
    color: white;
    opacity: 0.95;
    font-size: 1.2rem;
    margin-bottom: var(--landing-gap-medium);
}

.landing-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--landing-gap-small);
    flex-wrap: wrap;
}

.landing-btn-primary {
    background: white;
    color: var(--landing-primary);
    padding: 1rem 2rem;
    border-radius: var(--landing-radius-medium);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: var(--landing-shadow-sm);
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--landing-shadow-lg);
    color: var(--landing-primary-dark);
    text-decoration: none;
}

.landing-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: var(--landing-radius-medium);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.landing-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Job Board Landing Page Specific Styles
   ───────────────────────────────────────────────────────────────────────────── */

.job-landing-hero {
    background: var(--landing-gradient);
    padding: 3rem 0;
    color: white;
}

.job-landing-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.job-landing-subtitle {
    font-size: 1.25rem;
    color: white;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.job-landing-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.job-landing-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.job-landing-stat-label {
    font-size: 0.875rem;
    color: white;
    opacity: 0.9;
}

.job-landing-cta {
    background: var(--landing-gradient);
    padding: var(--landing-section-padding) 1rem;
    color: white;
}

.job-landing-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.job-landing-cta-subtitle {
    font-size: 1.2rem;
    color: white;
    opacity: 0.95;
    margin-bottom: var(--landing-gap-medium);
}

.job-landing-cta-footer {
    color: white;
    opacity: 0.9;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive Design
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
    .landing-user-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-title {
        font-size: 2.25rem;
    }
    .landing-feature-grid {
        grid-template-columns: 1fr;
    }
    .landing-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --landing-section-padding: 3rem;
        --landing-card-padding: 1.5rem;
    }
    
    .landing-user-grid {
        grid-template-columns: 1fr;
    }
    .landing-title,
    .job-landing-title {
        font-size: 1.75rem;
    }
    .landing-section-header h2,
    .landing-cta h2,
    .job-landing-cta-title {
        font-size: 2rem;
    }
    .landing-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .job-landing-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .landing-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .landing-btn-primary,
    .landing-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
    text-decoration: none;
}

/* ============================================
   PRODUCT PREVIEW SECTION
   ============================================ */

.landing-preview {
    padding: 5rem 1rem;
    background: var(--landing-bg-white, #ffffff);
}

.preview-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.preview-showcase:last-child {
    margin-bottom: 0;
}

.preview-showcase.reverse {
    direction: rtl;
}

.preview-showcase.reverse > * {
    direction: ltr;
}

@media (max-width: 992px) {
    .preview-showcase,
    .preview-showcase.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }
}

.preview-info {
    padding: 1rem 0;
}

.preview-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.preview-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.preview-info p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.preview-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preview-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #1a1a2e;
    font-weight: 500;
}

.preview-features li i {
    color: #10b981;
    font-size: 0.875rem;
}

/* Mockup Window Styles */
.preview-mockup {
    perspective: 1000px;
}

.mockup-window {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.preview-showcase:hover .mockup-window {
    transform: rotateY(0) rotateX(0);
}

.mockup-header {
    background: #0f172a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #334155;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.mockup-content {
    padding: 1.5rem;
    min-height: 250px;
}

/* Dashboard Mockup */
.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mockup-stat {
    background: #334155;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.mockup-stat-value {
    color: #667eea;
    font-size: 1.25rem;
    font-weight: 700;
}

.mockup-stat-label {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 100px;
    padding: 1rem;
    background: #334155;
    border-radius: 8px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
}

/* Quote Form Mockup */
.mockup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-input {
    background: #334155;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-label {
    color: #94a3b8;
    font-size: 0.75rem;
}

.input-value {
    color: white;
    font-weight: 500;
}

.mockup-services {
    background: #334155;
    border-radius: 8px;
    overflow: hidden;
}

.service-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    border-bottom: 1px solid #475569;
}

.service-row:last-child {
    border-bottom: none;
}

.service-row.total {
    background: #667eea;
    color: white;
    font-weight: 600;
}

/* Job Cards Mockup */
.mockup-jobs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.job-card {
    background: #334155;
    border-radius: 8px;
    padding: 1rem;
}

.job-title {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.8rem;
}

.job-meta i {
    margin-right: 0.25rem;
}

.job-price {
    color: #10b981;
    font-weight: 600;
}

