/* ============================================
   Light Mode
   ============================================ */
body.light {
    --bg-base: #f4f6f8;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-elevated: rgba(0, 0, 0, 0.05);
    --bg-hover: rgba(0, 0, 0, 0.07);
    --border-color: rgba(0, 0, 0, 0.10);
    --border-glow: rgba(16, 185, 129, 0.30);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
}

body.light::before {
    background:
        radial-gradient(ellipse 600px 400px at 20% 20%, rgba(16, 185, 129, 0.08), transparent),
        radial-gradient(ellipse 500px 500px at 80% 80%, rgba(6, 182, 212, 0.06), transparent),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(59, 130, 246, 0.04), transparent);
}

body.light .site-header {
    background: rgba(244, 246, 248, 0.90);
}

body.light .brand-title {
    -webkit-text-fill-color: unset;
    background: none;
    color: #059669;
}

body.light .kpi-number {
    -webkit-text-fill-color: unset;
    background: none;
    color: #059669;
}

body.light .map-container,
body.light .heatmap-container {
    background: linear-gradient(135deg, #e8edf2, #dfe5eb);
}

body.light .timeline-dot {
    background: var(--bg-base);
}

body.light .timeline-item.active .timeline-dot,
body.light .timeline-item.completed .timeline-dot {
    background: var(--accent-green);
}

body.light .report-preview {
    background: #fff;
    color: #1e293b;
}

body.light ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}

body.light ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

body.light .camera-viewfinder {
    background: linear-gradient(135deg, #e8edf2, #dfe5eb);
}

body.light .camera-guide-frame {
    border-color: rgba(5, 150, 105, 0.5);
}

body.light .camera-guide-text {
    color: rgba(5, 150, 105, 0.7);
}

body.light .camera-overlay-info {
    color: rgba(0, 0, 0, 0.5);
}

body.light .camera-shutter {
    border-color: rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.08);
}

body.light .anomaly-high {
    background: rgba(239, 68, 68, 0.08);
}

body.light .anomaly-mid {
    background: rgba(245, 158, 11, 0.08);
}

body.light .anomaly-low {
    background: rgba(59, 130, 246, 0.08);
}

body.light .bar {
    background: linear-gradient(to top, rgba(5, 150, 105, 0.25), rgba(5, 150, 105, 0.45));
}

body.light .bar-current {
    background: linear-gradient(to top, rgba(5, 150, 105, 0.4), rgba(5, 150, 105, 0.7));
}

body.light .hbar-fill {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.3), rgba(5, 150, 105, 0.6));
}

body.light .hbar-warn {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.6));
}

body.light .voice-text-output {
    background: #fff;
}

/* Responsive for new panels */
@media (max-width: 768px) {
    .cl-categories {
        gap: 4px;
    }

    .cl-cat-btn {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .bar-chart {
        gap: var(--space-sm);
        height: 150px;
    }

    .hbar-label {
        width: 60px;
        font-size: 0.7rem;
    }

    .anomaly-item {
        flex-direction: column;
    }

    .knowledge-item {
        flex-direction: column;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--accent-green);
    background: rgba(52, 211, 153, 0.1);
}

