/* Easy Power — small custom layer on top of Bulma */

body {
    min-height: 100vh;
}

.brand-logo {
    height: 64px;
    width: auto;
}

/* Leaflet popups */
.leaflet-popup-content {
    margin: 12px 14px;
}

.station-popup {
    font-family: 'Segoe UI', sans-serif;
    min-width: 190px;
}

.station-popup .addr {
    font-size: 11px;
    color: #7a7a7a;
    margin-bottom: 6px;
}

/* QR scanner viewfinder */
.qr-viewfinder #qrReader {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

/* Live rental timer */
.timer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

/* Success page slot number */
.slot-num {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

/* Off-canvas station panel (admin dashboard) */
.station-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    display: none;
}

.station-overlay.open {
    display: block;
}

.station-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 92vw;
    height: 100vh;
    background: var(--ep-card);
    border-left: 1px solid var(--ep-border);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.station-panel.open {
    transform: translateX(0);
}

/* Admin stations map fills its column */
#map {
    width: 100%;
    height: 100%;
    min-height: 70vh;
}

/* Spinner for the success waiting state */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--ep-border);
    border-top-color: var(--ep-success);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

/* Leaflet dark popups */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--ep-card);
    color: var(--ep-text);
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--ep-muted);
}

.leaflet-container {
    background: var(--ep-bg);
}

.leaflet-container .leaflet-control-attribution {
    background: rgba(15, 23, 42, 0.8);
    color: var(--ep-muted);
}

.leaflet-container .leaflet-control-attribution a {
    color: var(--ep-accent);
}

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