﻿* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1600px;
            margin: 0 auto;
        }

        header {
            text-align: center;
            color: white;
            margin-bottom: 30px;
            padding: 20px;
        }

        header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        header p {
            font-size: 1.2em;
            opacity: 0.9;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: white;
            font-size: 1.2em;
        }

        .error {
            background: #ffebee;
            color: #c62828;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .division-stats-grid {
            margin-top: -10px;
        }

        .stat-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
        }

        .stat-card h3 {
            color: #666;
            font-size: 0.85em;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .stat-card .value {
            font-size: 2em;
            font-weight: bold;
            color: #333;
        }

        .stat-card.kashmir {
            border-left: 5px solid #3498db;
        }

        .stat-card.jammu {
            border-left: 5px solid #e74c3c;
        }

        .stat-card.total {
            border-left: 5px solid #27ae60;
        }

        .refresh-box {
            background: white;
            border-radius: 15px;
            padding: 15px 25px;
            margin-bottom: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .refresh-box button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 10px 25px;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
        }

        .refresh-box button:hover {
            opacity: 0.9;
        }

        .last-updated {
            color: #666;
            font-size: 0.9em;
        }

        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .tab {
            padding: 12px 24px;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid white;
            color: white;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
        }

        .tab:hover,
        .tab.active {
            background: white;
            color: #667eea;
        }

        /* Tabs inside white-background sections (like District View) */
        .table-section .tabs .tab {
            background: rgba(102, 126, 234, 0.1);
            border: 2px solid #667eea;
            color: #667eea;
        }

        .table-section .tabs .tab:hover,
        .table-section .tabs .tab.active {
            background: #667eea;
            color: white;
        }

        /* Subdued stat boxes inside tabs (District View sections) */
        .table-section .stats-grid {
            gap: 10px;
        }

        .table-section .stat-card {
            padding: 15px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            transform: none !important;
        }

        .table-section .stat-card:hover {
            transform: none !important;
        }

        .table-section .stat-card h3 {
            font-size: 0.75em;
            margin-bottom: 5px;
        }

        .table-section .stat-card .value {
            font-size: 1.5em;
        }

        .table-section .stat-card p {
            font-size: 0.8em;
        }

        .table-section .stat-card.kashmir {
            border-left: 3px solid rgba(52, 152, 219, 0.5);
            background: rgba(52, 152, 219, 0.05);
        }

        .table-section .stat-card.jammu {
            border-left: 3px solid rgba(231, 76, 60, 0.5);
            background: rgba(231, 76, 60, 0.05);
        }

        .table-section .stat-card.total {
            border-left: 3px solid rgba(39, 174, 96, 0.5);
            background: rgba(39, 174, 96, 0.05);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .chart-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .chart-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .chart-card h3 {
            margin-bottom: 15px;
            color: #333;
            font-size: 1.1em;
        }

        .chart-container {
            position: relative;
            height: 300px;
        }

        .table-section {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            margin-bottom: 30px;
        }

        .table-section h2 {
            margin-bottom: 20px;
            color: #333;
        }

        .controls {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .controls input,
        .controls select {
            padding: 10px 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            flex: 1;
            min-width: 200px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

        th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 12px 8px;
            text-align: left;
            font-weight: 600;
        }

        th.sortable {
            cursor: pointer;
            user-select: none;
        }

        .sort-indicator {
            display: inline-block;
            margin-left: 6px;
            font-size: 0.9em;
            opacity: 0.95;
        }

        td {
            padding: 10px 8px;
            border-bottom: 1px solid #eee;
        }

        tr:hover {
            background: #f8f9fa;
        }

        .number {
            text-align: right;
            font-family: 'Courier New', monospace;
            font-weight: 600;
        }

        .project-cell {
            font-weight: 600;
            color: #333;
            width: 20%;
            white-space: normal;
            word-wrap: break-word;
            line-height: 1.4;
        }

        .activity-cell {
            color: #666;
            font-size: 0.9em;
            width: 20%;
            white-space: normal;
            word-wrap: break-word;
            line-height: 1.4;
        }

        .kashmir-col {
            color: #1565c0;
            font-weight: 600;
            background-color: #e3f2fd;
            border-radius: 4px;
            padding: 8px 6px;
        }

        .jammu-col {
            color: #c62828;
            font-weight: 600;
            background-color: #ffebee;
            border-radius: 4px;
            padding: 8px 6px;
        }

        .total-col {
            color: #2e7d32;
            font-weight: bold;
            background-color: #e8f5e9;
            border-radius: 4px;
            padding: 8px 6px;
        }

        footer {
            text-align: center;
            color: white;
            padding: 20px;
            opacity: 0.8;
        }


