:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-glass: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-temp: #06b6d4;
    --accent-temp-glow: rgba(6, 182, 212, 0.4);
    --accent-humid: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
    overflow-x: hidden;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
.dashboard-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0 0.75rem 0;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-temp), var(--accent-humid));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(120deg, #38bdf8, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
    position: absolute;
    right: 0;
    top: 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.hidden {
    display: none !important;
}

.menu-toggle {
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 90;
}

.side-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    background: rgba(17, 24, 39, 0.92);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: left 0.25s ease;
    z-index: 100;
}

.side-menu.open {
    left: 0;
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.6rem;
}

.side-menu-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.side-menu-sub {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.side-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.side-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.side-menu-links a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.side-menu-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.side-link-btn {
    color: #e2e8f0;
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.side-link-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Wider screens: fit 6 cards per row */
@media (min-width: 1440px) {
    .rooms-grid {
        grid-template-columns: repeat(6, minmax(180px, 1fr));
    }
}

/* Make AMeDAS (outside air) card span full width */
#card-AMDS-50196 {
    grid-column: 1 / -1;
    width: 100%;
}

/* Compact, distinct style for AMeDAS card */
#card-AMDS-50196.room-card {
    /* Keep layout compact, but match base card background/border */
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    background: var(--bg-card-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    gap: 0.2rem;
}

#card-AMDS-50196 .room-header {
    margin-bottom: 0.1rem;
    padding-bottom: 0;
    border: none;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
}

#card-AMDS-50196 .room-name {
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

#card-AMDS-50196 .comfort-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.35rem;
    font-size: 0.65rem;
    border-radius: 10px;
    min-width: 0;
}

#card-AMDS-50196 .room-stats-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    flex: 1 1 auto;
}

#card-AMDS-50196 .stat-item {
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 7px;
}

#card-AMDS-50196 .stat-item.highlight {
    padding: 0.12rem 0.28rem 0.15rem 0.28rem;
    background: transparent;
    gap: 0.15rem;
}

#card-AMDS-50196 .stat-label {
    font-size: 0.52rem;
}

#card-AMDS-50196 .stat-value {
    font-size: 0.85rem;
}

#card-AMDS-50196 .stat-item.highlight .stat-label {
    font-size: 0.7rem;
}

#card-AMDS-50196 .stat-item.highlight .stat-value {
    font-size: 1.6rem;
    line-height: 1;
}

#card-AMDS-50196 .stat-item {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
}

#card-AMDS-50196 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
}

.room-card {
    background: var(--bg-card-glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0.6rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.room-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.room-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Enhanced Room Card Stats */
.room-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.3rem 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

/* Highlight Item (Main Metric) - No Box Design */
.stat-item.highlight {
    grid-column: 1 / -1;
    background: transparent;
    padding: 0 0 0.35rem 0;
    margin-bottom: 0.25rem;
    border-radius: 0;
    border: none;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.75rem;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    order: 1;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-feature-settings: "tnum";
    order: 2;
}

/* Highlight Item Specifics */
.stat-item.highlight .stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    order: 1;
    align-self: center;
}

.stat-item.highlight .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    order: 2;
    transition: text-shadow 0.3s ease;
}

/* Metric Specific Colors & Glows - INTENSE NEON EFFECT */
.stat-item.highlight.metric-temperature .stat-value {
    color: #22d3ee;
    /* Bright Cyan */
    text-shadow:
        0 0 10px rgba(34, 211, 238, 0.8),
        0 0 20px rgba(34, 211, 238, 0.6),
        0 0 40px rgba(34, 211, 238, 0.4),
        0 0 80px rgba(34, 211, 238, 0.2);
    animation: neon-pulse-cyan 3s infinite alternate;
}

.stat-item.highlight.metric-humidity .stat-value {
    color: #a78bfa;
    /* Bright Violet */
    text-shadow:
        0 0 10px rgba(167, 139, 250, 0.8),
        0 0 20px rgba(167, 139, 250, 0.6),
        0 0 40px rgba(167, 139, 250, 0.4),
        0 0 80px rgba(167, 139, 250, 0.2);
    animation: neon-pulse-violet 3s infinite alternate;
}

.stat-item.highlight.metric-co2 .stat-value {
    color: #34d399;
    /* Bright Emerald */
    text-shadow:
        0 0 10px rgba(52, 211, 153, 0.8),
        0 0 20px rgba(52, 211, 153, 0.6),
        0 0 40px rgba(52, 211, 153, 0.4),
        0 0 80px rgba(52, 211, 153, 0.2);
    animation: neon-pulse-emerald 3s infinite alternate;
}

.stat-item.highlight.metric-absoluteHumidity .stat-value,
.stat-item.highlight.metric-dewPoint .stat-value {
    color: #38bdf8;
    /* Sky Blue */
    text-shadow:
        0 0 10px rgba(56, 189, 248, 0.8),
        0 0 20px rgba(56, 189, 248, 0.6),
        0 0 40px rgba(56, 189, 248, 0.4);
}

.stat-item.highlight.metric-vpd .stat-value {
    color: #f472b6;
    /* Pink */
    text-shadow:
        0 0 10px rgba(244, 114, 182, 0.8),
        0 0 20px rgba(244, 114, 182, 0.6),
        0 0 40px rgba(244, 114, 182, 0.4);
}

/* Neon Pulse Animations */
@keyframes neon-pulse-cyan {
    from {
        text-shadow: 0 0 10px rgba(34, 211, 238, 0.8), 0 0 20px rgba(34, 211, 238, 0.6), 0 0 40px rgba(34, 211, 238, 0.4);
    }

    to {
        text-shadow: 0 0 15px rgba(34, 211, 238, 1), 0 0 30px rgba(34, 211, 238, 0.8), 0 0 60px rgba(34, 211, 238, 0.6);
    }
}

@keyframes neon-pulse-violet {
    from {
        text-shadow: 0 0 10px rgba(167, 139, 250, 0.8), 0 0 20px rgba(167, 139, 250, 0.6), 0 0 40px rgba(167, 139, 250, 0.4);
    }

    to {
        text-shadow: 0 0 15px rgba(167, 139, 250, 1), 0 0 30px rgba(167, 139, 250, 0.8), 0 0 60px rgba(167, 139, 250, 0.6);
    }
}

@keyframes neon-pulse-emerald {
    from {
        text-shadow: 0 0 10px rgba(52, 211, 153, 0.8), 0 0 20px rgba(52, 211, 153, 0.6), 0 0 40px rgba(52, 211, 153, 0.4);
    }

    to {
        text-shadow: 0 0 15px rgba(52, 211, 153, 1), 0 0 30px rgba(52, 211, 153, 0.8), 0 0 60px rgba(52, 211, 153, 0.6);
    }
}

.stat-item.highlight .stat-value small {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.25rem;
    text-shadow: none;
}

.comfort-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
}

.comfort-badge.optimal {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.comfort-badge.fair {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.comfort-badge.poor {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Main Chart Section */
.chart-section {
    background: var(--bg-card-glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 1rem;
    height: 360px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Chart Header Controls */
.chart-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chart-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.metric-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
    display: inline-flex;
}

.metric-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.metric-btn.active {
    background: var(--accent-temp);
    color: white;
    box-shadow: 0 0 15px var(--accent-temp-glow);
}

.time-filters {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
    gap: 0.5rem;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.chart-container {
    flex: 1;
    position: relative;
    width: 100%;
}

.timeline-scroll {
    margin-top: 10px;
    height: 14px;
    overflow-x: auto;
    overflow-y: hidden;
}

.timeline-scroll::-webkit-scrollbar {
    height: 8px;
}

.timeline-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    border-radius: 999px;
}

.timeline-inner {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.35), rgba(139, 92, 246, 0.35));
    min-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .chart-section {
        height: 350px;
        padding: 1rem;
    }
}

/* ===========================
   Data View Page (data_view.html)
   =========================== */
.data-view-page .data-view-container {
    /* Align width with cards/grid (parent already has padding/max-width) */
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0.5rem 0 0 0;
}

.data-view-page .controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.data-view-page .back-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 2rem;
}

.data-view-page .back-link:hover {
    color: var(--text-primary);
}

.data-view-page .title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.data-view-page .control-groups {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.data-view-page .data-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.data-view-page .data-chart-header .chart-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    align-self: flex-start;
    justify-content: flex-start;
}

.data-view-page .data-chart-section .chart-controls {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.75rem;
}

.data-view-page .data-chart-section .chart-controls .metric-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.data-view-page .data-chart-section .time-filters,
.data-view-page .data-chart-section .metric-filters {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    width: fit-content;
}

.data-view-page .data-chart-section .date-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-left: 0;
}

.data-view-page .data-chart-section .nav-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-view-page .data-chart-section .right-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

/* Override global toggle colors so temp/humid match other metric buttons */
.data-view-page #btn-toggle-temp.active,
.data-view-page #btn-toggle-humid.active {
    background: var(--accent-temp);
    color: white;
    box-shadow: 0 0 15px var(--accent-temp-glow);
}

.data-view-page .data-chart-section .filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.data-view-page .data-chart-section {
    margin-bottom: 2rem;
    height: 360px;
    width: 100%;
}

.data-view-page .data-table-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    display: none;
}

.data-view-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    white-space: nowrap;
}

.data-view-page th,
.data-view-page td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.data-view-page th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
}

.data-view-page td {
    color: var(--text-secondary);
}

.data-view-page tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-view-page .loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}
/* Date Navigation */
.date-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
    margin-left: auto;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn:disabled,
.nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.date-label {
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
    text-align: center;
    font-feature-settings: "tnum";
}

/* Chart Toggles */
.chart-toggles {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
    margin-left: 1rem;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.toggle-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Specific active colors for toggles */
#btn-toggle-temp.active {
    color: var(--accent-temp);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 10px var(--accent-temp-glow);
}

#btn-toggle-humid.active {
    color: var(--accent-humid);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}
