/* Estilos base */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    background: #f8f9fa;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #fff;
    height: 100vh;
    padding: 30px 15px;
    position: fixed;
    transition: transform 0.3s ease;
    z-index: 9999;
    top: 70px;
    left: 0;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
}

.sidebar a {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.sidebar a:hover {
    background-color: #f0f0f0;
    color: #333;
}

.sidebar a.active {
    background: #f0f0f0;
    color: #333;
    font-weight: 600;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Contenido principal */
.main-content {
    margin-left: 220px;
    padding: 30px;
    width: calc(100% - 220px);
    max-width: 1200px;
    box-sizing: border-box;
    background: #fff;
}

/* Weather display styles */
.weather-display {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.current-weather {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.temperature-display {
    font-size: 4rem;
    font-weight: 700;
    color: #333;
    margin: 10px 0;
}

.weather-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.date-time {
    text-align: center;
    margin-bottom: 15px;
}

.time {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.date {
    font-size: 0.9rem;
    color: #777;
}

.weather-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.metric {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 20px;
    min-width: 100px;
    text-align: center;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.metric-label {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

/* Tab navigation */
.weather-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #777;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    color: #333;
    border-bottom: 2px solid #333;
}

.tab:hover:not(.active) {
    color: #555;
    border-bottom: 2px solid #ddd;
}

/* Media queries */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Ajustes para tablas responsivas */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Ajustes para gráficos */
    .grafico-container {
        height: 300px !important;
    }
    
    .weather-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .current-weather {
        width: 100%;
    }
}
