* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: #0f2027;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #f8fafc;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.glass-header, .glass-card {
    background: rgba(25, 33, 44, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; margin-bottom: 20px; }
.logo-area h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.logo-area p { font-size: 0.85rem; color: #94a3b8; }

.status-area { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.led-green { width: 10px; height: 10px; background-color: #22c55e; border-radius: 50%; box-shadow: 0 0 10px #22c55e; }

.dashboard-grid { display: flex; gap: 20px; }
.left-column { flex: 0 0 350px; width: 350px; display: flex; flex-direction: column; gap: 20px; }
.right-column { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.card { padding: 25px; display: flex; flex-direction: column; gap: 15px; }
.card h3 { font-size: 1.1rem; font-weight: 600; color: #f8fafc; margin-bottom: 10px; }

.current-weather { text-align: center; justify-content: center; padding: 40px 20px; }
.temp-main { font-size: 4rem; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 15px; }
.temp-main i { color: #fb923c; font-size: 3rem; }
.temp-feels { color: #94a3b8; font-size: 1.1rem; margin-bottom: 30px; }

.weather-details { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; }
.detail-box { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.detail-box i { font-size: 1.2rem; color: #94a3b8; }
.detail-box small { font-size: 0.75rem; text-transform: uppercase; color: #94a3b8; }
.detail-box strong { font-size: 1.1rem; }
.detail-box.warning strong { color: #fb923c; }

/* NOVA GRELHA DE 7 DIAS (SEM SCROLL) */
.daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 15px;
}

.day-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.day-card:hover { border-color: #38bdf8; background: rgba(255, 255, 255, 0.05); transform: translateY(-3px); }
.day-card .day-name { font-size: 1rem; color: #f8fafc; font-weight: 600; text-transform: capitalize; }
.day-card .day-date { font-size: 0.75rem; color: #94a3b8; margin-bottom: 5px; }
.day-card .day-max { font-weight: 700; font-size: 1.1rem; color: #fb923c; }
.day-card .day-min { font-size: 0.85rem; color: #94a3b8; }
.day-card .day-rain { font-size: 0.75rem; color: #38bdf8; margin-top: 4px; }

.chart-wrapper { position: relative; height: 350px; width: 100%; }

.alert-box { border-left: 4px solid #22c55e; }
.alert-box.active-alert { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.alert-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.alert-header i { font-size: 1.3rem; }
.alert-box.active-alert .alert-header i { color: #ef4444; animation: pulse 1.5s infinite; }

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

@media (max-width: 1024px) { .dashboard-grid { flex-direction: column; } .left-column { width: 100%; flex: 1; } }