/* =========================================
   WWCI – Checked-In Stations Map
   map.css
   ========================================= */

/* -------- Base layout -------- */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #020617;
    color: #e5e7eb;
}

header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #334155;
    display: flex;
    gap: 1rem;
    align-items: center;
}

h1 {
    margin: 0;
    font-size: 1.3rem;
    flex: 1;
}

select {
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #334155;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}

/* -------- Map -------- */
#map {
    height: calc(100vh - 72px);
}

/* =========================================
   Loader overlay
   ========================================= */
#loader {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 6px solid #334155;
    border-top: 6px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-text {
    font-size: 1rem;
    color: #e5e7eb;
}

/* =========================================
   Bottom-right status card
   ========================================= */
#statusCard {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 32px));
    background: rgba(2, 6, 23, 0.92);
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 12px 12px 10px;
    z-index: 5000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#statusTitle {
    font-size: 0.95rem;
    margin: 0 0 6px 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #334155;
    color: #94a3b8;
}

.statusProgressWrap {
    width: 100%;
    background: rgba(51, 65, 85, 0.35);
    border: 1px solid #334155;
    border-radius: 10px;
    overflow: hidden;
}

.statusProgressBar {
    height: 10px;
    width: 0%;
    background: #22c55e;
    transition: width 120ms linear;
}

#statusMeta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
