/**
 * DataJam Pulse - Demographics Styles
 * Phase 5 - CSS Extraction (Batch 2)
 * Extracted: Dec 14, 2025
 * Source: index.html lines 3797-4074
 * Version: v5.4.10
 */

        /* === v3.2.0: DEMOGRAPHIC INSIGHTS SCREEN === */
        .demo-insights-container {
            padding: 32px;
            max-width: 1600px;
            margin: 0 auto;
        }

        .demo-insights-header {
            margin-bottom: 24px;
        }

        .demo-insights-header h1 {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .demo-insights-header p {
            font-size: 16px;
            color: var(--text-secondary);
        }

        .demo-view-tabs {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }

        .demo-view-tab {
            padding: 12px 20px;
            border-radius: 8px;
            border: 2px solid var(--border-color);
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .demo-view-tab.active {
            border-color: #8B5CF6;
            background: rgba(139, 92, 246, 0.1);
            color: #A78BFA;
        }

        .demo-view-tab:hover:not(.active) {
            border-color: rgba(139, 92, 246, 0.5);
        }

        /* Index Cards Grid */
        .index-summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .index-summary-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            transition: all 0.2s;
            cursor: pointer;
        }

        .index-summary-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
        }

        .index-summary-card.selected {
            border-color: #8B5CF6;
            background: rgba(139, 92, 246, 0.1);
        }

        .index-summary-card .index-icon {
            font-size: 28px;
            margin-bottom: 8px;
        }

        .index-summary-card .index-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .index-summary-card .index-avg {
            font-size: 28px;
            font-weight: 700;
            color: #8B5CF6;
        }

        .index-summary-card .index-label {
            font-size: 11px;
            color: var(--text-muted);
        }

        /* Sortable Table */
        .demo-table-container {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            overflow: hidden;
            margin-bottom: 24px;
        }

        .demo-table {
            width: 100%;
            border-collapse: collapse;
        }

        .demo-table th {
            background: rgba(139, 92, 246, 0.1);
            padding: 16px 12px;
            text-align: left;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
            transition: background 0.2s;
        }

        .demo-table th:hover {
            background: rgba(139, 92, 246, 0.2);
        }

        .demo-table th.sorted {
            color: #A78BFA;
        }

        .demo-table th .sort-icon {
            margin-left: 4px;
            opacity: 0.5;
        }

        .demo-table th.sorted .sort-icon {
            opacity: 1;
        }

        .demo-table td {
            padding: 14px 12px;
            border-top: 1px solid var(--border-color);
            font-size: 14px;
            color: var(--text-primary);
        }

        .demo-table tr:hover td {
            background: rgba(139, 92, 246, 0.05);
        }

        .demo-table .location-cell {
            font-weight: 600;
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .demo-table .project-badge {
            font-size: 11px;
            padding: 2px 8px;
            background: rgba(139, 92, 246, 0.2);
            border-radius: 4px;
            color: var(--text-secondary);
            display: inline-block;
            margin-top: 4px;
        }

        .demo-table .index-cell {
            text-align: center;
            font-weight: 600;
        }

        .demo-table .index-score {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 32px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 700;
        }

        .demo-table .index-score.high { background: rgba(16, 185, 129, 0.2); color: #10B981; }
        .demo-table .index-score.medium-high { background: rgba(59, 130, 246, 0.2); color: #3B82F6; }
        .demo-table .index-score.medium { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
        .demo-table .index-score.low { background: rgba(239, 68, 68, 0.2); color: #EF4444; }

        .demo-table .oac-cell {
            font-size: 12px;
        }

        .demo-table .oac-badge {
            padding: 4px 10px;
            background: rgba(139, 92, 246, 0.15);
            border-radius: 4px;
            color: #A78BFA;
            font-weight: 500;
        }

        /* Demographic Heatmap */
        .demo-heatmap-container {
            height: 500px;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            margin-bottom: 24px;
        }

        .demo-heatmap-legend {
            display: flex;
            justify-content: center;
            gap: 16px;
            padding: 16px;
            background: var(--bg-secondary);
            border-radius: 12px;
            flex-wrap: wrap;
        }

        .demo-legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .demo-legend-color {
            width: 20px;
            height: 20px;
            border-radius: 4px;
        }

        .demo-legend-color.high { background: #10B981; }
        .demo-legend-color.medium-high { background: #3B82F6; }
        .demo-legend-color.medium { background: #F59E0B; }
        .demo-legend-color.low { background: #EF4444; }

        /* Export Button */
        .demo-export-btn {
            padding: 12px 24px;
            background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .demo-export-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
        }

        @media (max-width: 768px) {
            .demo-table-container {
                overflow-x: auto;
            }

            .demo-table {
                min-width: 800px;
            }

            .index-summary-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
