/* Desktop Modal Size - Fixed and looks nice */
        .districts-modal-dialog {
            width: 1000px;
            height: 600px;
            max-width: none;
            max-height: none;
        }

        /* Mobile Modal Responsive */
        @media (max-width: 991px) {
            .districts-modal-dialog {
                width: 95vw !important;
                height: 85vh !important;
                max-width: 95vw !important;
                max-height: 85vh !important;
                margin: auto;
            }
            
            .districts-modal-dialog .modal-body {
                overflow-y: auto !important;
                max-height: calc(85vh - 60px) !important;
            }
            
            .districts-modal-dialog .modal-content {
                overflow: visible !important;
            }
        }

        /* Small Mobile Screens */
        @media (max-width: 576px) {
            .districts-modal-dialog {
                width: 98vw !important;
                height: 90vh !important;
                max-width: 98vw !important;
                max-height: 90vh !important;
            }
            
            .districts-modal-dialog .modal-body {
                padding: 10px !important;
                overflow-y: auto !important;
                max-height: calc(90vh - 60px) !important;
            }
            
            .districts-modal-dialog .col-lg-7 {
                margin-bottom: 15px;
            }
            
            .districts-modal-dialog .modal-content {
                overflow: visible !important;
            }
        }

        .districts-map-container .map-wrapper {
            max-width: 100%;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            overflow: hidden;
            background: #f8f9fa;
        }

        .district-overlay {
            transition: all 0.3s ease;
            border: 2px solid #2a5298;
        }

        .district-overlay:hover {
            background: rgba(42, 82, 152, 0.5) !important;
            transform: scale(1.05);
        }

        .district-btn {
            font-size: 0.85rem;
            padding: 8px 12px;
            transition: all 0.3s ease;
        }

        .district-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .stats-card {
            min-height: 400px;
        }

        .stat-item {
            padding: 12px;
            border-radius: 8px;
            background: rgba(42, 82, 152, 0.05);
            transition: all 0.3s ease;
        }

        .stat-item:hover {
            background: rgba(42, 82, 152, 0.1);
            transform: translateY(-2px);
        }

        .activity-item {
            font-size: 0.85rem;
            border-left: 3px solid #2a5298;
        }

        .coverage-info .progress {
            border-radius: 10px;
            background-color: #e9ecef;
        }

        .coverage-info .progress-bar {
            border-radius: 10px;
        }

        /* Dark theme support for districts modal */
        [data-theme="dark"] .districts-map-container .map-wrapper {
            border-color: var(--border-color);
            background: var(--bg-secondary);
        }

        [data-theme="dark"] .stat-item {
            background: rgba(115, 165, 255, 0.1);
        }

        [data-theme="dark"] .stat-item:hover {
            background: rgba(115, 165, 255, 0.2);
        }

        [data-theme="dark"] .activity-item {
            background-color: var(--bg-secondary) !important;
            color: var(--text-primary);
            border-left-color: var(--link-color);
        }

        [data-theme="dark"] .coverage-info .progress {
            background-color: var(--border-color);
        }

        @media (max-width: 768px) {
            .district-btn {
                font-size: 0.75rem;
                padding: 6px 8px;
            }
            
            .stats-card {
                min-height: auto;
                margin-top: 20px;
            }
        }