/* ============================================================
   Fuel Tracker Sri Lanka — Mobile-First Corporate Design
   Primary target: smartphones (used while standing at a shed)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --navy: #0a2540;
    --navy-mid: #1a3a5c;
    --accent: #0066cc;
    --accent-hover: #0052a3;
    --bg: #f4f6f9;
    --bg-card: #ffffff;
    --bg-section: #eef1f6;
    --border: #dde2ec;
    --border-light: #eaecf2;
    --text-h: #0a2540;
    --text-body: #3d5166;
    --text-muted: #7a8fa6;
    --available: #0a7c4e;
    --available-bg: #e6f5ee;
    --available-bd: #a7dfc4;
    --red: #c0392b;
    --red-bg: #fdecea;
    --red-bd: #f5b4ae;
    --unknown: #6b7c93;
    --unknown-bg: #f0f2f5;
    --unknown-bd: #c8d0da;
    --shadow-sm: 0 1px 4px rgba(10, 37, 64, 0.07);
    --shadow-md: 0 4px 16px rgba(10, 37, 64, 0.10);
    --shadow-lg: 0 8px 32px rgba(10, 37, 64, 0.15);
    --radius: 14px;
    --radius-sm: 10px;
    /* Mobile touch target minimum */
    --touch-min: 52px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-body);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    /* Reserve space for bottom nav bar on mobile */
    padding-bottom: env(safe-area-inset-bottom);
}

/* ── Top info bar (hidden on mobile) ───────────────────────── */
.topbar {
    background: var(--navy);
    padding: 7px 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    letter-spacing: 0.3px;
    display: none;
    /* hidden on mobile */
}

.topbar strong {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
    background: var(--navy);
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(10, 37, 64, 0.25);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-text {
    line-height: 1.15;
}

.logo-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

.logo-sub {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.15s;
    display: none;
    /* hide text nav on mobile */
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.header-btn {
    background: #fff;
    color: var(--navy);
    border: none;
    padding: 0 16px;
    height: 38px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s, transform 0.1s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.header-btn:hover {
    opacity: 0.92;
}

.header-btn:active {
    transform: scale(0.96);
}

/* ── Live bar ────────────────────────────────────────────────── */
.live-bar {
    background: var(--accent);
    padding: 8px 16px;
}

.live-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.live-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #86efac;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.6);
    }

    50% {
        opacity: .7;
        box-shadow: 0 0 0 5px rgba(134, 239, 172, 0);
    }
}

.live-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.live-right {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}

#last-updated {
    color: #fff;
    font-weight: 600;
}

/* ── Main ────────────────────────────────────────────────────── */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 12px 100px;
    /* big bottom padding for floating button */
}

/* ── Page header ─────────────────────────────────────────────── */
.page-header {
    margin-bottom: 16px;
}

.page-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.3px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ── Stats row ───────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-num {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-card.gold .stat-num {
    color: var(--accent);
}

.stat-card.green .stat-num {
    color: var(--available);
}

.stat-card.red .stat-num {
    color: var(--red);
}

.stat-card.grey .stat-num {
    color: var(--unknown);
}

.stat-card.clickable {
    cursor: pointer;
    transition: transform 0.1s, border-color 0.15s, box-shadow 0.15s;
    user-select: none;
}

.stat-card.clickable:active {
    transform: scale(0.96);
}

.stat-card.clickable.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
    background: #fff;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Drop icon on mobile to save space */
.stat-icon {
    display: none;
}

.stat-info {
    text-align: center;
}

/* ── Controls bar ────────────────────────────────────────────── */
.controls-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.search-box {
    flex: 1;
    min-width: 120px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-h);
    font-size: 15px;
    /* larger for mobile */
    font-family: 'Inter', sans-serif;
    outline: none;
    min-height: var(--touch-min);
    transition: border-color 0.15s;
}

.search-box:focus {
    border-color: var(--accent);
}

.search-box::placeholder {
    color: var(--text-muted);
}

.filter-select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 30px 10px 12px;
    color: var(--text-h);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    cursor: pointer;
    appearance: none;
    min-height: var(--touch-min);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a8fa6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-color: var(--bg);
    transition: border-color 0.15s;
    flex-shrink: 0;
}

.filter-select:focus {
    border-color: var(--accent);
}

.divider {
    display: none;
}

/* hide on mobile */

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    min-height: 40px;
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

/* ── Map ─────────────────────────────────────────────────────── */
#map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 14px;
    display: none;
    box-shadow: var(--shadow-sm);
}

#map {
    height: 380px;
    width: 100%;
}

/* ── Shed grid ───────────────────────────────────────────────── */
#sheds-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* single column on mobile */
    gap: 10px;
}

/* ── Shed card ───────────────────────────────────────────────── */
.shed-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
    border-left: 4px solid var(--border);
}

.shed-card.has-available {
    border-left-color: var(--available);
}

.shed-card.has-unavailable {
    border-left-color: var(--red);
}

.shed-card:active {
    box-shadow: var(--shadow-md);
}

.shed-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.shed-icon {
    display: none;
}

/* hide icon on mobile to save space */
.shed-meta {
    flex: 1;
    min-width: 0;
}

.shed-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.shed-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.shed-last-report {
    font-size: 11px;
    color: var(--navy);
    font-weight: 500;
    margin-top: 4px;
    opacity: 0.8;
}

.shed-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.shed-status-dot.available {
    background: var(--available);
}

.shed-status-dot.unavailable {
    background: var(--red);
}

.shed-status-dot.unknown {
    background: var(--unknown);
}

/* ── Fuel chips ──────────────────────────────────────────────── */
.fuel-types {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.fuel-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.chip-time {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.7;
    margin-left: auto;
    padding-left: 8px;
    white-space: nowrap;
}

.fuel-chip.available {
    background: var(--available-bg);
    border-color: var(--available-bd);
    color: var(--available);
}

.fuel-chip.unavailable {
    background: var(--red-bg);
    border-color: var(--red-bd);
    color: var(--red);
}

.fuel-chip.unknown {
    background: var(--unknown-bg);
    border-color: var(--unknown-bd);
    color: var(--unknown);
}

.fuel-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.available .fuel-chip-dot {
    background: var(--available);
}

.unavailable .fuel-chip-dot {
    background: var(--red);
}

.unknown .fuel-chip-dot {
    background: var(--unknown);
}

/* ── Vendor Badges ────────────────────────────────────────────── */
.vendor-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.vendor-badge.lioc {
    background: #003399;
    color: #fff;
}

.vendor-badge.ceypetco {
    background: #ce2029;
    color: #fff;
}

/* ── Card report button (big touch target) ───────────────────── */
.btn-report {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0;
    height: var(--touch-min);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    -webkit-tap-highlight-color: transparent;
}

.btn-report:active {
    background: var(--accent-hover);
    transform: scale(0.98);
}

/* ── Floating bottom bar (mobile only) ───────────────────────── */
.fab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(10, 37, 64, 0.2);
}

.fab-bar-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.fab-btn {
    flex: 1;
    height: 52px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform 0.1s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.fab-btn:active {
    transform: scale(0.96);
}

.fab-btn-primary {
    background: #fff;
    color: var(--navy);
}

.fab-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 0 0 52px;
    border-radius: 12px;
}

/* ── Skeleton ────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e9ef 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius);
    height: 140px;
    border: 1px solid var(--border);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state,
.no-results {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    grid-column: 1/-1;
}

.empty-state .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.empty-state h3 {
    font-size: 17px;
    color: var(--navy);
    margin-bottom: 6px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

/* ── Map popup ───────────────────────────────────────────────── */
.leaflet-popup-content-wrapper {
    background: var(--bg-card);
    color: var(--text-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-tip {
    background: var(--bg-card);
}

.popup-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--navy);
}

.popup-loc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.popup-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.popup-btn {
    display: block;
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* ================================================================
   REPORT PAGE — optimized for 1-hand mobile use
   ================================================================ */
.report-wrapper {
    max-width: 540px;
    margin: 0 auto;
    padding: 16px 12px 110px;
    /* extra bottom for fab bar */
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
}

.report-card-header {
    margin-bottom: 22px;
}

.report-card-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.3px;
    margin-bottom: 5px;
}

.report-card-header .sub {
    font-size: 13px;
    color: var(--text-muted);
}

.step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 8px;
}

.step-num {
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-select,
.form-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 38px 14px 14px;
    color: var(--text-h);
    font-size: 16px;
    /* 16px prevents iOS auto-zoom! */
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    min-height: var(--touch-min);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%237a8fa6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: var(--bg);
}

.form-select:focus,
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
    background-color: #fff;
}

/* ── BIG status buttons (the most important UI) ──────────────── */
.status-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.status-btn {
    padding: 20px 10px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    letter-spacing: 0.1px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}

.status-btn .icon {
    font-size: 32px;
    line-height: 1;
}

.status-btn:active {
    transform: scale(0.97);
}

.status-btn.selected-available {
    background: var(--available-bg);
    border-color: var(--available);
    color: var(--available);
    box-shadow: 0 0 0 3px rgba(10, 124, 78, 0.15);
}

.status-btn.selected-unavailable {
    background: var(--red-bg);
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.divider-line {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* ── Sticky submit button ────────────────────────────────────── */
.submit-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0;
    height: 54px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 3px 12px rgba(0, 102, 204, 0.35);
    letter-spacing: 0.2px;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.msg-success,
.msg-error {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    margin-top: 14px;
    display: none;
    line-height: 1.5;
}

.msg-success {
    background: var(--available-bg);
    color: var(--available);
    border: 1px solid var(--available-bd);
}

.msg-error {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-bd);
}

.report-info-box {
    margin-top: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 2;
    text-align: center;
}

/* ================================================================
   ADMIN PANEL
   ================================================================ */
.admin-wrapper {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 16px 80px;
}

.admin-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.admin-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.admin-table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--bg);
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--bg);
}

.badge {
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.badge.green {
    background: var(--available-bg);
    color: var(--available);
    border: 1px solid var(--available-bd);
}

.badge.red {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-bd);
}

.badge.grey {
    background: var(--unknown-bg);
    color: var(--unknown);
    border: 1px solid var(--unknown-bd);
}

.admin-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.admin-btn.edit {
    background: var(--accent);
    color: #fff;
}

.admin-btn.danger {
    background: var(--red);
    color: #fff;
}

/* ── Report page form inputs for admin ───────────────────────── */
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================================
   RESPONSIVE — larger screens get two-column grid & more space
   ================================================================ */
@media (min-width: 600px) {
    .topbar {
        display: block;
    }

    .header {
        background: var(--bg-card);
    }

    .header-inner {
        height: 66px;
    }

    .logo-mark {
        background: var(--navy);
    }

    .logo-title {
        color: var(--navy);
    }

    .logo-sub {
        color: var(--text-muted);
    }

    .nav-link {
        display: block;
    }

    .header-btn {
        background: var(--accent);
        color: #fff;
    }

    .live-bar {
        background: var(--navy);
    }

    .live-badge {
        background: rgba(34, 197, 94, 0.15);
        border-color: rgba(34, 197, 94, 0.4);
        color: #86efac;
    }

    .main {
        padding: 24px 20px 60px;
    }

    .page-title {
        font-size: 22px;
    }

    .stats-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
        margin-bottom: 20px;
    }

    .stat-card {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 18px;
        text-align: left;
    }

    .stat-icon {
        display: flex;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 18px;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .stat-card.gold .stat-icon {
        background: #e8f0fe;
    }

    .stat-card.green .stat-icon {
        background: var(--available-bg);
    }

    .stat-card.red .stat-icon {
        background: var(--red-bg);
    }

    .stat-card.grey .stat-icon {
        background: var(--unknown-bg);
    }

    .stat-info {
        text-align: left;
    }

    .stat-num {
        font-size: 26px;
    }

    .stat-label {
        font-size: 11px;
    }

    .divider {
        display: block;
        width: 1px;
        height: 28px;
        background: var(--border);
        flex-shrink: 0;
    }

    #sheds-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 14px;
    }

    .shed-card {
        border-left: 1px solid var(--border);
        border-radius: var(--radius);
    }

    .shed-card.has-available {
        border: 1px solid var(--border);
        border-top: 3px solid var(--available);
    }

    .shed-card.has-unavailable {
        border: 1px solid var(--border);
        border-top: 3px solid var(--red);
    }

    .shed-icon {
        display: flex;
    }

    #map {
        height: 500px;
    }

    .fab-bar {
        display: none;
    }

    /* hide floating bar on desktop */

    .report-wrapper {
        padding: 28px 20px 60px;
        margin: 0 auto;
    }

    .report-card {
        padding: 28px 28px;
    }

    .status-btn {
        min-height: 110px;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 900px) {
    .stats-row {
        gap: 16px;
    }
}