/* ==========================================================================
   AGforum — Consolidated Stylesheet
   Extracted from aviationForum.py monolith and deduplicated.
   ========================================================================== */

/* ------------------------------------------------------------------------ */
/* 1.  CSS Custom Properties (Theme Variables)
/* ------------------------------------------------------------------------ */
:root {
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Blue theme (used in header, side-menu, login, register, meus-relatos) */
    --primary-blue: #1a3a5c;
    --primary-blue-hover: #0f2a45;
    --primary-blue-light: #eef3f8;

    /* Purple theme (used in about, privacy, relato forms, account) */
    --primary: #6E1EED;
    --primary-hover: #5812CD;
    --primary-light: #F3EEFE;
    --shadow-hover: 0 10px 25px rgba(110, 30, 237, 0.12);

    /* Shared surface colors */
    --secondary-bg: #F8F9FC;
    --secondary-bg-alt: #f0f2f5;
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --border-radius-lg: 2px;
    --border-radius-md: 1px;
    --border-radius-sm: 1px;
    --shadow-subtle: 0 4px 20px rgba(15, 23, 42, 0.06);

    /* Danger */
    --danger: #DC2626;
    --danger-hover: #B91C1C;
}

/* ------------------------------------------------------------------------ */
/* 2.  Reset & Base
/* ------------------------------------------------------------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--secondary-bg);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: 56px;
    padding-bottom: 60px;
}

/* ------------------------------------------------------------------------ */
/* 3.  Shared Header (fixed top bar, blue)
/* ------------------------------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #1a3a5c;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: 12px;
}

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

@media (max-height: 700px), (max-width: 480px) {
    .header-logo { height: 26px; }
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* ------------------------------------------------------------------------ */
/* 4.  Side Menu (slide-in from left)
/* ------------------------------------------------------------------------ */
.side-menu {
    position: fixed;
    top: 56px;
    left: -280px;
    width: 280px;
    height: calc(100vh - 56px);
    background: #fff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    z-index: 9999;
    padding: 16px 0;
    overflow-y: auto;
}

.side-menu.open { left: 0; }

.side-menu .menu-section {
    padding: 8px 20px;
    border-bottom: 1px solid #eee;
}

.side-menu .menu-section:last-child { border-bottom: none; }

.side-menu .menu-label {
    font-size: 0.75em;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.side-menu a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
}

.side-menu a:hover { color: #1a3a5c; }

.side-menu .user-info {
    padding: 12px 20px;
    background: #f5f7fa;
    font-size: 0.9em;
    color: #555;
}

.side-menu .user-info strong { color: #1a3a5c; }

.btn-menu {
    display: inline-block;
    background: #1a3a5c;
    color: #fff !important;
    text-align: center;
    padding: 10px 16px !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    margin: 4px 0;
}

.btn-menu:hover { background: #2a5a8c !important; }

.btn-menu-outline {
    display: inline-block;
    background: transparent;
    color: #1a3a5c !important;
    text-align: center;
    padding: 10px 16px !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    border: 2px solid #1a3a5c;
    margin: 4px 0;
}

.btn-menu-outline:hover { background: #eef3f8 !important; }

.overlay {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
}

.overlay.show { display: block; }

/* ------------------------------------------------------------------------ */
/* 5.  Search Box (in side menu)
/* ------------------------------------------------------------------------ */
.search-box {
    display: flex;
    gap: 6px;
}

.search-box input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

.search-box button {
    padding: 8px 14px;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.search-box button:hover { background: #2a5a8c; }

/* ------------------------------------------------------------------------ */
/* 6.  Buttons
/* ------------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(110, 30, 237, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger);
    color: #FFFFFF;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    transform: translateY(-1px);
}

/* ------------------------------------------------------------------------ */
/* 7.  Cards
/* ------------------------------------------------------------------------ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 24px;
}

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

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title svg { color: var(--primary); }

/* ------------------------------------------------------------------------ */
/* 8.  Data Lists
/* ------------------------------------------------------------------------ */
.data-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px dashed var(--border-color);
}

.data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.data-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    min-width: 140px;
}

.data-value {
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
    font-size: 0.95rem;
}

/* ------------------------------------------------------------------------ */
/* 9.  Forms
/* ------------------------------------------------------------------------ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-group .hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 6px;
    display: block;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-family);
    color: var(--text-main);
    background: var(--card-bg);
    transition: border-color 0.2s;
}

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

.form-group textarea { resize: vertical; }

.form-group input[type="checkbox"] { width: auto; }

.form-group .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: var(--secondary-bg);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
    border-color: var(--border-color);
}

.form-group input[type="checkbox"]:disabled {
    opacity: 0.4;
    accent-color: var(--text-light);
}

.form-group .checkbox-label:has(input:disabled) {
    color: var(--text-light);
    opacity: 0.5;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.form-actions a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-actions a:hover { color: var(--primary); }

.info-box {
    display: none;
    margin-top: 8px;
    padding: 10px 14px;
    background: var(--secondary-bg);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ------------------------------------------------------------------------ */
/* 10. Navbar (back-button bar, used in relato detalhe / editar relato)
/* ------------------------------------------------------------------------ */
.navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease;
    background-color: transparent;
}

.nav-back:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.nav-brand {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------------ */
/* 11. Tags / Badges
/* ------------------------------------------------------------------------ */
.tag {
    background-color: var(--secondary-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    font-family: monospace;
}

.tag-primary {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: rgba(110, 30, 237, 0.2);
}

/* ------------------------------------------------------------------------ */
/* 12. Comment Box
/* ------------------------------------------------------------------------ */
.comment-box {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-top: 8px;
    line-height: 1.7;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* ------------------------------------------------------------------------ */
/* 13. Action Bar (edit/delete buttons on detail pages)
/* ------------------------------------------------------------------------ */
.action-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.action-bar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.action-bar a:hover { color: var(--primary); }

/* ------------------------------------------------------------------------ */
/* 14. Empty State
/* ------------------------------------------------------------------------ */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.empty-state .sub {
    font-size: 0.85rem;
    color: var(--text-light);
}

.empty-state a:not(.btn) {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.empty-state a:not(.btn):hover { text-decoration: underline; }

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px auto;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 24px;
    height: 24px;
}

.empty-state h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

/* ------------------------------------------------------------------------ */
/* 15. Flash Messages
/* ------------------------------------------------------------------------ */
.flash-msg {
    background: #d4edda;
    color: #155724;
    padding: 10px 16px;
    border-radius: 2px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.flash-msg.error {
    background: #f8d7da;
    color: #721c24;
}

/* ------------------------------------------------------------------------ */
/* 16. Containers
/* ------------------------------------------------------------------------ */
.container {
    max-width: 1140px;
    margin: 28px auto 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

/* ------------------------------------------------------------------------ */
/* 17. Login / Register Pages (centered card, blue theme)
/* ------------------------------------------------------------------------ */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--secondary-bg-alt);
}

.auth-card {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(15,23,42,0.06);
    width: 100%;
    max-width: 440px;
    padding: 32px;
}

.auth-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-blue);
    text-align: center;
}

.auth-card .logo-text {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

.auth-card .logo-text span { color: #f0c040; }

/* ------------------------------------------------------------------------ */
/* 18. Page Titles (Meus relatos, etc.)
/* ------------------------------------------------------------------------ */
.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-blue);
}

.page-title .count {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ------------------------------------------------------------------------ */
/* 19. Group Header (Meus relatos ICAO grouping)
/* ------------------------------------------------------------------------ */
.group-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 12px 16px;
    margin: 20px 0 8px;
    background: #e8edf3;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-header .icao-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary-blue);
}

.group-header .aero-name {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.group-header .aero-city {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: auto;
}

/* ------------------------------------------------------------------------ */
/* 20. Relato Card (list item in meus-relatos)
/* ------------------------------------------------------------------------ */
.relato-card {
    background: var(--card-bg);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
    margin-bottom: 6px;
    transition: box-shadow 0.2s;
}

.relato-card:hover {
    box-shadow: 0 4px 16px rgba(15,23,42,0.08);
}

.relato-card a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-main);
    gap: 16px;
}

.relato-card .date {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 100px;
}

.relato-card .aeronave {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 80px;
}

.relato-card .comentario {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.relato-card .arrow {
    color: var(--text-light);
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .relato-card a { flex-wrap: wrap; gap: 6px; }
    .relato-card .date { min-width: auto; }
    .relato-card .comentario { width: 100%; order: 10; }
}

/* ------------------------------------------------------------------------ */
/* 21. Aerodrome Detail Page — Hero Card
/* ------------------------------------------------------------------------ */
.hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.hero-main h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.icao-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--border-radius-md);
    letter-spacing: 1px;
    display: inline-block;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-subtitle span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------------------ */
/* 22. Aerodrome Detail Page — Layout Grid
/* ------------------------------------------------------------------------ */
.layout-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
}

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

/* ------------------------------------------------------------------------ */
/* 23. Aerodrome Detail Page — Stats Grid
/* ------------------------------------------------------------------------ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-subtle);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

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

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

.stat-card-comms {
    min-width: 280px;
}

.stat-card-comms .stat-label {
    margin-bottom: 10px;
}

/* ------------------------------------------------------------------------ */
/* 24. Aerodrome Detail Page — Communications
/* ------------------------------------------------------------------------ */
.comms-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    padding: 6px 0;
}

.comms-entry ~ .comms-entry {
    border-top: 1px solid var(--border-color);
}

.comms-channel {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.comms-freqs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.comms-freq {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    padding: 1px 6px;
    border-radius: 4px;
}

.comms-rmks {
    width: 100%;
    margin-top: 2px;
    padding-left: 4px;
}

.comms-rmk {
    font-size: 0.78rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.4;
}

.comms-freq-note {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary);
    vertical-align: super;
    line-height: 1;
    margin-left: 0.5px;
}

/* ------------------------------------------------------------------------ */
/* 25. Aerodrome Detail Page — Runway Boxes (dark gradient)
/* ------------------------------------------------------------------------ */
.runway-box {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: #FFFFFF;
    padding: 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
}

.runway-box:last-child { margin-bottom: 0; }

.runway-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.runway-id {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #F8FAFC;
}

.runway-dim {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
}

.runway-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    font-size: 0.85rem;
    color: #94A3B8;
}

.runway-details span strong {
    color: #F1F5F9;
    display: block;
    font-size: 0.95rem;
}

/* ------------------------------------------------------------------------ */
/* 26. Aerodrome Detail Page — Reports List (light theme)
/* ------------------------------------------------------------------------ */
.report-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.report-item:last-child { border-bottom: none; padding-bottom: 0; }
.report-item:first-child { padding-top: 0; }

.report-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.report-link:hover { color: var(--primary); }

.report-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.report-more-link {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
    transition: color 0.2s;
}

.report-more-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.report-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ------------------------------------------------------------------------ */
/* 27. Aerodrome Detail Page — Fuel Grid
/* ------------------------------------------------------------------------ */
.fuel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fuel-box {
    background-color: var(--secondary-bg);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    text-align: center;
}

.fuel-box-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.fuel-box-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2px;
}

/* ------------------------------------------------------------------------ */
/* 28. Aerodrome Detail Page — Map
/* ------------------------------------------------------------------------ */
#map {
    height: 320px;
    width: 100%;
    border-radius: var(--border-radius-md);
    z-index: 1;
}

/* ------------------------------------------------------------------------ */
/* 29. Aerodrome Detail Page — Tooltip Trigger
/* ------------------------------------------------------------------------ */
.tooltip-trigger {
    cursor: help;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    display: inline-block;
}

/* ------------------------------------------------------------------------ */
/* 30. Aerodrome Detail Page — Description text
/* ------------------------------------------------------------------------ */
.desc-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ------------------------------------------------------------------------ */
/* 22. Index Page (full-page map)
/* ------------------------------------------------------------------------ */
#indexMap {
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

.map-legend {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    color: #F1F5F9;
    padding: 16px 20px;
    border-radius: 2px;
    font-size: 0.85rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.map-legend h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.green { background: #22C55E; }
.legend-dot.blue { background: #3B82F6; }

/* Marker popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 2px !important;
    font-family: var(--font-family);
    padding: 4px;
}

.leaflet-popup-content {
    margin: 10px 14px !important;
    font-size: 0.9rem;
}

.popup-icao {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.popup-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.popup-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ------------------------------------------------------------------------ */
/* 23. Editar Aerodromo Form (blue theme)
/* ------------------------------------------------------------------------ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-main);
}

.btn-secondary:hover { background: #cbd5e1; }

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ------------------------------------------------------------------------ */
/* 24. Misc utilities
/* ------------------------------------------------------------------------ */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}
