/* Estilo Holfuy */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f7;
    margin: 0;
    color: #333;
    line-height: 1.4;
}

/* Contenedor principal */
#holfuy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}



/* Header */
#station-header {
    background: #2c3e50;
    color: white;
    padding: 12px 15px;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

#station-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: normal;
}

#station-header p {
    margin: 3px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

/* Sección de datos actuales */
#current-data {
    background: white;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.data-section {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.data-title {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.data-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.data-unit {
    font-size: 14px;
    color: #7f8c8d;
    margin-left: 3px;
}

/* Imagen de fondo visible */
#act_data_image_holder {
    background-image: url('/img/corona.jpg');
    /* background-size: cover; */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    padding: 0;
    margin: 0;
}

/* Indicador de viento */
.wind-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}


.wind-direction-indicator {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(86, 150, 168, 0.3);
    border: 5px solid rgb(40, 39, 39);
    margin: 0 auto;
    box-shadow: inset 0 0 10px rgba(49, 47, 47, 0.5);
}

.wind-arrow {
    --angle: 0deg; /* será reemplazado por estilo en línea */
    --radius: 45px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: rotate(var(--angle));
}

.wind-arrow::after {
    content: '';
    position: absolute;
    top: calc(-1 * var(--radius));
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 30px solid rgb(255, 255, 0);
    filter: drop-shadow(0 0 1px black);
    transform: rotate(180deg); /* Siempre apunta al centro */
}


/* Tablas de datos */
.data-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 15px 0;
    padding: 15px;
    overflow-x: auto;
}

.table-title {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.time-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.time-table th {
    background: #34495e;
    color: white;
    padding: 8px 5px;
    text-align: center;
    font-weight: normal;
}

.time-table td {
    padding: 8px 5px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.highlight-cell {
    background: #34495e;
    color: white;
    font-weight: bold;
}

/* Gráficos */
.graph-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 15px 0;
    padding: 15px;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.graph-title {
    font-size: 16px;
    color: #2c3e50;
}

.zoom-controls {
    display: flex;
    gap: 10px;
}

.zoom-option {
    font-size: 12px;
    color: #3498db;
    cursor: pointer;
}

.zoom-option:hover {
    color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
    .wind-display {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wind-direction-indicator {
        margin-bottom: 15px;
    }
}

/* Gráficos compactos */
.graph-container {
    margin-bottom: 20px;
}
.graph-wrapper {
    position: relative;
    width: 95%;
    height: 250px;
    margin: auto;
    margin-bottom: 1rem;
}

@media (min-width: 1200px) {
    .graph-wrapper {
        max-width: 1000px;
    }
}

canvas {
    background-color: white;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.graph-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.graph-title {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}

.zoom-options {
    display: flex;
    gap: 8px;
}

.zoom-option {
    font-size: 11px;
    color: #3498db;
    cursor: pointer;
}

.zoom-option:hover {
    color: #2980b9;
}

.sync-checkbox {
    font-size: 11px;
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}