/* style.css */

#map {
    height: 100vh;
    width: 100vw;
    background: #0a0a0a;
}

.controls {
    position: fixed;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.95);
    padding: 4px;
    border-radius: 4px;
    color: #fff;
    z-index: 1000;
    min-width: 150px; /* Reduce o aumenta este valor para cambiar el ancho mínimo */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

button {
    margin: 2px;
    padding: 4px 8px;
    background: #2e7d32;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
    font-size: 0.7em;
}

button:hover {
    background: #1b5e20;
    transform: translateY(-1px);
}

button[onclick="deleteAllWards()"] {
    background: #d32f2f !important;
    margin-top: 4px;
    width: calc(100% - 8px);
}

button[onclick="deleteAllWards()"]:hover {
    background: #b71c1c !important;
}

#time-indicator {
    margin: 4px 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.7em;
}

#coords,
#status {
    margin: 4px 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.7em;
    color: #cfcfcf;
}

#vision-coverage {
    margin: 4px 0;
    padding: 4px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    line-height: 1.1;
    font-size: 0.7em;
}

#coverage-percent {
    color: #81c784;
    font-size: 1em;
    font-weight: bold;
}

#ward-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7em;
}

/* Estilos de visión */
.vision-day {
    stroke: #FFD700 !important;
    fill: rgba(255, 215, 0, 0.08) !important;
    stroke-width: 1.8px !important;
}

.vision-night {
    stroke: #616161 !important;
    fill: rgba(97, 97, 97, 0.12) !important;
    stroke-width: 1.2px !important;
}

.sentry-vision {
    stroke: #00BCD4 !important;
    fill: rgba(0, 188, 212, 0.06) !important;
    stroke-dasharray: 5,3 !important;
}

/* Zoom de Leaflet */
.leaflet-control-zoom {
    margin-right: 15px !important;
    margin-top: 15px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 4px !important;
}

/* Sombras de los íconos */
.observer-aura .leaflet-marker-icon {
    filter: 
        drop-shadow(0 0 8px rgba(255, 215, 0, 0.5))
        drop-shadow(0 0 16px rgba(255, 215, 0, 0.3)) !important;
}

.sentry-aura .leaflet-marker-icon {
    filter: 
        drop-shadow(0 0 8px rgba(0, 188, 212, 0.5))
        drop-shadow(0 0 16px rgba(0, 188, 212, 0.3)) !important;
}
