/* Remove click/focus outline box from map elements */
        .leaflet-container {
            outline: none !important;
        }

        .leaflet-container:focus {
            outline: none !important;
        }

        /* Remove focus outline from all map interactive elements */
        .leaflet-interactive {
            outline: none !important;
        }

        .leaflet-interactive:focus {
            outline: none !important;
        }

        /* Remove focus outline from map container and all child elements */
        .leaflet-container,
        .leaflet-container * {
            outline: none !important;
            -webkit-tap-highlight-color: transparent !important;
        }

        /* Remove any selection highlighting */
        .leaflet-container {
            -webkit-user-select: none !important;
            -moz-user-select: none !important;
            -ms-user-select: none !important;
            user-select: none !important;
        }

        /*    responsive for 1300px width*/
        @media screen and (max-width: 1300px) {
            #vaccine-selection-dropdown {
                display: block !important;
            }

            #vaccine-selection-radio {
                display: none !important;
            }
        }

        /* HTML: <div class="loader"></div> */
        .loader {
            width: 120px;
            height: 20px;
            background: linear-gradient(90deg, #0000, orange) left -50px top 0/50px 20px no-repeat lightblue;
            animation: l2 1s infinite linear;
        }

        @keyframes l2 {
            100% {
                background-position: right -50px top 0
            }
        }

        /* Responsive Ward Label Styles */
        .permanent-ward-label-marker {
            background: none !important;
            border: none !important;
            transition: opacity 0.3s ease, transform 0.2s ease;
        }

        .permanent-ward-label-marker .label-content {
            background: rgba(255, 255, 255, 0.7) !important;
            border: 1px solid rgba(0, 0, 0, 0.3) !important;
            border-radius: 4px !important;
            padding: 1px 3px !important;
            font-size: 11px !important;
            font-weight: bold !important;
            color: #333 !important;
            text-align: center !important;
            white-space: nowrap !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
            pointer-events: none !important;
            line-height: 1.2 !important;
        }

        .permanent-ward-label-marker:hover .label-content {
            background: rgba(255, 255, 255, 1) !important;
            transform: scale(1.1);
        }

        /* Hide labels on very low zoom for better performance */
        .leaflet-zoom-anim .permanent-ward-label-marker {
            transition: none !important;
        }

        /* Enhanced Map Label Styles */
        .map-label {
            background: none !important;
            border: none !important;
            box-shadow: none !important;
            font-size: 11px !important;
            color: #000000 !important;
            pointer-events: none !important;
            z-index: 1000 !important;
        }

        /* Epicenter Styles */
        .custom-map-pin {
            background: none !important;
            border: none !important;
        }

        .pin-container {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s ease;
        }

        .pin-container svg {
            width: 32px;
            height: 32px;
            min-height: 55px;
            min-width: 55px;
        }

        /* Tooltip Styles */
        .epi-tooltip {
            background: white !important;
            border: 2px solid #0dcaf0 !important;
            border-radius: 8px !important;
            padding: 10px !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
            font-size: 14px !important;
        }

        .epi-popup {
            text-align: center;
            min-width: 150px;
        }

        .epi-type {
            font-weight: bold;
            font-size: 16px;
            color: #0dcaf0;
            margin-bottom: 5px;
            padding-bottom: 5px;
            border-bottom: 1px solid #eee;
        }

        .epi-name {
            color: #333;
            font-size: 14px;
        }

        .epicenter-popup {
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .epicenter-info {
            padding: 8px;
            line-height: 1.4;
        }

        .epicenter-tooltip {
            background: rgba(5, 202, 107, 0.9);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 4px 8px;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .epicenter-tooltip::before {
            border-top-color: rgba(5, 202, 107, 0.9) !important;
        }

        .epicenter-detailed-tooltip {
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            border: 2px solid #05ca6b;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 12px;
            line-height: 1.4;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            max-width: 250px;
            z-index: 9999;
        }

        .epicenter-detailed-tooltip .epicenter-info {
            margin: 0;
            padding: 0;
        }

        .epicenter-detailed-tooltip::before {
            border-top-color: #05ca6b !important;
        }

        /* Coverage Tooltip Styles */
        .coverage-tooltip {
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            border: 1px solid #ccc;
            border-radius: 6px;
            padding: 8px 10px;
            font-size: 12px;
            line-height: 1.4;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
            max-width: 300px;
            z-index: 9999;
        }

        .coverage-tooltip strong {
            color: #2c3e50;
            font-weight: 600;
        }

        .coverage-tooltip em {
            color: #7f8c8d;
            font-style: italic;
            text-transform: capitalize;
        }

        /* Map Control Styles */
        .map-control-button {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 8px 12px;
            margin: 2px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .map-control-button:hover {
            background: rgba(255, 255, 255, 1);
            border-color: #05ca6b;
            color: #05ca6b;
        }

        /* Vaccine Stats Styles */
        .vaccine-stats {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 10px;
            margin: 10px 0;
            font-size: 12px;
        }

        .vaccine-stats h4 {
            margin: 0 0 8px 0;
            color: #2c3e50;
            font-size: 14px;
        }

        .vaccine-stats .stat-item {
            display: flex;
            justify-content: space-between;
            margin: 4px 0;
            padding: 2px 0;
            border-bottom: 1px solid #eee;
        }

        .vaccine-stats .stat-item:last-child {
            border-bottom: none;
        }

        .vaccine-stats .stat-label {
            font-weight: 500;
            color: #34495e;
        }

        .vaccine-stats .stat-value {
            font-weight: 600;
            color: #27ae60;
        }

        /* Coverage Legend Styles */
        .coverage-legend {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid #ccc;
            border-radius: 6px;
            padding: 10px;
            font-size: 12px;
            line-height: 1.4;
        }

        .coverage-legend h4 {
            margin: 0 0 8px 0;
            font-size: 14px;
            color: #2c3e50;
        }

        .legend-item {
            display: flex;
            align-items: center;
            margin: 4px 0;
        }

        .legend-color {
            width: 20px;
            height: 15px;
            margin-right: 8px;
            border: 1px solid #999;
            border-radius: 2px;
        }

        .legend-label {
            color: #34495e;
            font-weight: 500;
        }

        /* Loader Styles */
        #loader {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10000;
            background: rgba(255, 255, 255, 0.95);
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            border: 1px solid #ddd;
        }

        #loader::after {
            content: '';
            display: block;
            width: 40px;
            height: 40px;
            margin: 8px auto;
            border-radius: 50%;
            border: 4px solid #f3f3f3;
            border-top-color: #05ca6b;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
        #coverageChartHome {
            max-height: 380px !important;
            height: 380px !important;
            width: 100% !important;
        }

        /* Modern Chart Container with Glassmorphism */
        .app-card.pb-0 {
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: visible;
            border: 1px solid rgba(255, 255, 255, 0.18);
        }

        .app-card.pb-0::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 20px;
            /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%); */
            pointer-events: none;
            z-index: 1;
        }

        .app-card.pb-0:hover {
            /*transform: translateY(-5px);*/
            /*box-shadow:*/
            /*    0 30px 60px rgba(102, 126, 234, 0.35),*/
            /*    0 15px 30px rgba(118, 75, 162, 0.25),*/
            /*    inset 0 1px 0 rgba(255, 255, 255, 0.3);*/
        }

        /* Animated gradient background */
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .app-card.pb-0::after {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            /*background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #4facfe);*/
            background-size: 400% 400%;
            border-radius: 20px;
            z-index: -1;
            opacity: 0;
            transition: opacity 0.4s ease;
            animation: gradientShift 8s ease infinite;
        }

        /*.app-card.pb-0:hover::after {*/
        /*    opacity: 0.6;*/
        /*}*/

        /* Header Styling with Glass Effect */
        .card-header-custom {
            position: relative;
            z-index: 2;
            padding: 20px 24px 16px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }

        .app-card .card-title {
            font-weight: 800;
            font-size: 18px;
            /*color: #ffffff;*/
            margin-bottom: 4px;
            padding: 0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            letter-spacing: -0.5px;
            display: flex;
            align-items: center;
        }

        .card-header-custom .fas.fa-chart-bar {
            background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: iconPulse 3s ease-in-out infinite;
            filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
        }

        @keyframes iconPulse {
            0%, 100% {
                transform: scale(1);
                filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
            }
            50% {
                transform: scale(1.15);
                filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.5));
            }
        }

        .chart-subtitle {
            font-size: 13px !important;
            color: rgba(255, 255, 255, 0.9) !important;
            font-weight: 500 !important;
            padding: 0 !important;
            display: inline-block;
            margin-top: 4px;
            letter-spacing: 0.3px;
        }

        /* Chart Body with White Background */
        .app-card .card-body {
            background: #ffffff;
        }

        /* Fade in animation */
        @keyframes chartSlideIn {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .app-card.pb-0 {
            animation: chartSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Decorative corner accent */
        .card-header-custom::before {
            content: '📊';
            position: absolute;
            top: -8px;
            right: 20px;
            font-size: 32px;
            opacity: 0.15;
            transform: rotate(15deg);
            pointer-events: none;
        }

        /* Add glow effect to chart on hover */
        /*.app-card.pb-0:hover #coverageChartHome {*/
        /*    filter: brightness(1.02);*/
        /*    transition: filter 0.3s ease;*/
        /*}*/

        /* Canvas animation */
        #coverageChartHome {
            animation: canvasFade 0.8s ease-out 0.3s both;
        }

        @keyframes canvasFade {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Add sparkle effect */
        @keyframes sparkle {
            0%, 100% { opacity: 0; }
            50% { opacity: 1; }
        }

        .card-header-custom::after {
            content: '✨';
            position: absolute;
            top: 15px;
            left: 20px;
            font-size: 16px;
            animation: sparkle 3s ease-in-out infinite;
            pointer-events: none;
        }

        /* Add subtle animation to state label */
        .state-label-chart {
            display: inline-block;
            animation: fadeSlideIn 0.6s ease-out 0.3s both;
        }

        @keyframes fadeSlideIn {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        /* Responsive Design */
        @media (max-width: 768px) {
            #coverageChartHome {
                max-height: 300px !important;
                height: 300px !important;
            }

            .app-card.pb-0 {
                border-radius: 16px;
            }

            .card-header-custom {
                padding: 16px 18px 12px;
            }

            .app-card .card-title {
                font-size: 16px;
                padding: 0;
            }

            .chart-subtitle {
                font-size: 11px !important;
                padding: 0 !important;
            }

            .app-card .card-body {
                padding: 18px !important;
            }

            .card-header-custom::before {
                font-size: 24px;
                top: -6px;
                right: 15px;
            }

            .permanent-ward-label-marker .label-content {
                font-size: 10px !important;
                padding: 1px 4px !important;
            }

            .coverage-tooltip {
                font-size: 11px;
                max-width: 250px;
            }

            .epicenter-detailed-tooltip {
                font-size: 11px;
                max-width: 200px;
            }

            .map-control-button {
                padding: 6px 10px;
                font-size: 12px;
            }
        }
        table {
            border: #000000 !important;
        }
        td, th {
            border: #000000 !important;
        }
        .card-header{
            background-color: #0389bd;
            color: #ffffff
        }
        .print-btn {
            background-color: var(--theme-color);
            color: #fff;
            border-color: var(--theme-color);
            background-position: -100%;
            padding: 10px 15px;
            text-decoration: none;
            border-radius: 5px;
            grid-column: span 2;
            text-align: center
        }

        .print-footer {
            display: none;
        }

        /* hide on print  */
        @media print {
            @page {
                size: A4;
                margin: 10mm;
            }
            .page-sidebar {
                display: none !important;
            }
            .header-button {
                display: none !important;
            }
            .sidebar-filter-area {
                display: none !important;
            }
            .map-controller {
                display: none !important;
            }
            .map-type-selection {
                display: none !important;
            }
            #map-expand-trigger {
                display: none !important;
            }
            .page-content {
                margin-top: 10px !important;
                margin-left: 0 !important;
                width: 100% !important;
            }
            .homepage-wrapper{
                background: #ffffff !important;
            }
            html, body {
                background: #ffffff !important;
                height: 100%;
                margin: 0;
                padding: 0;
            }
            * {
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

            #map {
                width: 100% !important;
                height: 180mm !important;   /* fixed printable height */
                overflow: hidden !important;
            }

            .leaflet-container {
                height: 100% !important;
                overflow: hidden !important;
            }
        }

        #performance_table .perf-threshold {
            font-weight: 500;
            margin-left: 6px;
            opacity: 0.75;
            white-space: nowrap;
        }