/* === ESTILOS GENERALES === */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.map {
    height: 100vh;
    width: 100%;
    position: relative;
    background: #f5f5f5;
}

/* === CONTROLES Y SELECTORES === */
.controls, .layer-selector {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.layer-selector {
    top: 20px;
    right: 20px;
    max-width: 300px;
}

/* === LOGO === */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.logo img {
    height: 80px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* === CONTROLES DE RADAR (REACT) === */
#radarControls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 800px;
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.radar-button {
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.radar-button:hover {
    background: #34495e;
    transform: translateY(-2px);
}

.radar-info {
    color: #2c3e50;
    font-size: 14px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.speed-input {
    width: 60px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* === FORMULARIOS Y BOTONES === */
select, input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 5px 0;
    background: white;
}

#filterImages {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: all 0.3s ease;
}

#filterImages:hover {
    background: #34495e;
}

/* === FECHAS DISPONIBLES === */
#availableDates {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    color: #2c3e50;
}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.date-range label {
    font-size: 14px;
    color: #2c3e50;
}

/* === INFORMACIÓN DE DEPURACIÓN === */
.debug-info {
    display: none;
}

/* === ICONO Y MODAL DE INFORME === */
.report-icon {
    position: absolute;
    top: 110px;
    left: 20px;
    z-index: 100;
}

.report-icon button {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.report-icon button:hover {
    background: #c0392b;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
    text-align: center;
    border-radius: 8px;
}

.close {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

#reportTitle {
    font-size: 20px;
    margin: 20px 0;
}

#reportTitle a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

#reportTitle a:hover {
    text-decoration: underline;
}

/* === DISEÑO RESPONSIVO === */
@media (max-width: 768px) {
    .layer-selector {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    #radarControls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        min-width: auto;
    }
    
    .logo img {
        height: 60px;
    }
}


.quick-filters {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.quick-filter-btn {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.quick-filter-btn:hover {
    background-color: #e0e0e0;
}