/* ── Base ── */
body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', sans-serif;
}

/* ── Navbar ── */
.navbar-app {
    background-color: #1b5e20;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar-app .navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.badge-status {
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 20px;
}

/* ── Labels ── */
.label-muted {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ── Sensor cards ── */
.sensor-card {
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sensor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.sensor-card-1 { border-top: 4px solid #e74c3c; }
.sensor-card-2 { border-top: 4px solid #2980b9; }
.sensor-card-3 { border-top: 4px solid #27ae60; }

.sensor-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
}

.sensor-card-1 .sensor-icon { color: #e74c3c; }
.sensor-card-2 .sensor-icon { color: #2980b9; }
.sensor-card-3 .sensor-icon { color: #27ae60; }

.sensor-name {
    display: block;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    outline: none;
    margin-bottom: 6px;
}

.sensor-name:focus {
    background: #f8f9fa;
    border-radius: 6px;
}

.sensor-value {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    color: #212529;
}

.sensor-unit {
    font-size: 1rem;
    color: #adb5bd;
    font-weight: 500;
    margin-top: 4px;
}

/* ── Chart card ── */
#grafico {
    max-height: 350px;
}

/* ── Footer ── */
.footer-app {
    background-color: #1b5e20;
    color: #a5d6a7;
    font-size: 0.85rem;
}

.footer-app a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.footer-app a:hover {
    text-decoration: underline;
}
