/* Tiempo Real Dashboard Styles */

/* Station Card Styles */
.station-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.station-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.station-title {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.last-update {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* Table Grid Layout */
.table-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.table-grid-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 0;
    background-color: transparent;
    font-size: 0.9rem;
}

.table th, 
.table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Badge Styles */
.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

/* AQI Sticky Container */
.aqi-sticky-container {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aqi-sticky-container .card {
    border: none;
    box-shadow: none;
}

.aqi-sticky-container .card-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
    border-bottom: 1px solid #e3e6f0;
    padding: 15px;
}

.aqi-sticky-container .card-body {
    padding: 15px;
}

/* AQI Level Styles */
.aqi-level {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.aqi-level:hover {
    transform: translateX(5px);
}

.aqi-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.aqi-level-title {
    font-weight: 600;
    font-size: 1.1em;
    margin: 0;
}

.aqi-level-description {
    font-size: 0.9em;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* AQI Colors */
.aqi-verde { border-left: 4px solid #00e400; }
.aqi-amarillo { border-left: 4px solid #ffff00; }
.aqi-naranja { border-left: 4px solid #ff7e00; }
.aqi-rojo { border-left: 4px solid #ff0000; }
.aqi-morado { border-left: 4px solid #8f3f97; }
.aqi-granate { border-left: 4px solid #7e0023; }

/* AQI Range Colors */
.aqi-range-verde { 
    background-color: rgba(0, 228, 0, 0.1);
    color: #00a000;
}
.aqi-range-amarillo { 
    background-color: rgba(255, 255, 0, 0.1);
    color: #b3b300;
}
.aqi-range-naranja { 
    background-color: rgba(255, 126, 0, 0.1);
    color: #cc6600;
}
.aqi-range-rojo { 
    background-color: rgba(255, 0, 0, 0.1);
    color: #cc0000;
}
.aqi-range-morado { 
    background-color: rgba(143, 63, 151, 0.1);
    color: #6b2973;
}
.aqi-range-granate { 
    background-color: rgba(126, 0, 35, 0.1);
    color: #7e0023;
}

/* AQI Value Cell Colors */
td.aqi-verde {
    background-color: rgba(0, 228, 0, 0.2);
    color: #006400;
    font-weight: bold;
}

td.aqi-amarillo {
    background-color: rgba(255, 255, 0, 0.2);
    color: #8B8000;
    font-weight: bold;
}

td.aqi-naranja {
    background-color: rgba(255, 126, 0, 0.2);
    color: #CC6600;
    font-weight: bold;
}

td.aqi-rojo {
    background-color: rgba(255, 0, 0, 0.2);
    color: #CC0000;
    font-weight: bold;
}

td.aqi-morado {
    background-color: rgba(143, 63, 151, 0.2);
    color: #6B2973;
    font-weight: bold;
}

td.aqi-granate {
    background-color: rgba(126, 0, 35, 0.2);
    color: #7E0023;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .table-grid-container {
        grid-template-columns: 1fr;
    }
} 