* { margin: 0; padding: 0; box-sizing: border-box; }

body, html { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

#map {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0a0a0a;
}

/* Dark map tiles */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.6) contrast(1.2); }
.leaflet-control-attribution { display: none; }

/* Upload overlay */
#upload-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}
#upload-overlay.hidden { display: none; }

#upload-box {
    text-align: center;
    color: #e0e0e0;
    max-width: 420px;
    padding: 3rem;
}
#upload-icon { font-size: 4rem; margin-bottom: 1rem; }
#upload-box h1 { font-size: 1.6rem; margin-bottom: 0.5rem; color: #fff; }
#upload-box p { color: #aaa; margin-bottom: 1.5rem; font-size: 0.95rem; }
#upload-box p strong { color: #00e5ff; }

#upload-label {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #00e5ff;
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
#upload-label:hover { background: #00b8d4; }
#upload-label input { display: none; }

#drop-hint { margin-top: 0.75rem; color: #666; font-size: 0.85rem; }

#status {
    margin-top: 1.5rem;
    color: #00e5ff;
    font-size: 0.9rem;
}
#status.error { color: #ff5252; }

/* Drag-over visual */
#upload-box.dragover {
    outline: 2px dashed #00e5ff;
    outline-offset: 8px;
    border-radius: 16px;
}

/* Controls */
#controls {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 900;
    display: flex;
    gap: 12px;
    align-items: center;
}
#controls.hidden { display: none; }

#btn-reset {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #00e5ff;
    border: 1px solid #00e5ff33;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}
#btn-reset:hover { background: rgba(0, 229, 255, 0.15); }

#stats {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
    border-radius: 6px;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

.hidden { display: none !important; }
