        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
        
        * {
            font-family: 'Inter', sans-serif;
        }
        
        body {
            background: #f8fafc;
        }
        
        .animate-spin {
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .live-indicator {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: .5; }
        }
        
        #map {
            height: 600px;
            border-radius: 0.75rem;
            z-index: 1;
        }
        
        .camera-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .camera-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        .camera-preview {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
        }
        
        .marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
            background: rgba(59, 130, 246, 0.6) !important;
            border: 3px solid rgba(96, 165, 250, 0.8) !important;
        }
        
        .marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
            background: rgba(30, 64, 175, 0.9) !important;
            color: white !important;
            font-weight: 700 !important;
        }
        
        /* Dark Mode Styles */
        :root {
            --bg-primary: #f8fafc;
            --bg-secondary: #ffffff;
            --text-primary: #1f2937;
            --text-secondary: #6b7280;
            --border-color: #e5e7eb;
        }
        
        [data-theme="dark"] {
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --border-color: #334155;
        }
        
        [data-theme="dark"] body {
            background: var(--bg-primary);
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .bg-white {
            background: var(--bg-secondary) !important;
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .text-gray-600,
        [data-theme="dark"] .text-gray-700 {
            color: var(--text-secondary) !important;
        }
        
        [data-theme="dark"] .text-gray-900 {
            color: var(--text-primary) !important;
        }
        
        [data-theme="dark"] .border-gray-200 {
            border-color: var(--border-color) !important;
        }
        
        [data-theme="dark"] .camera-card {
            background: var(--bg-secondary);
            border-color: var(--border-color);
        }
        
        [data-theme="dark"] input {
            background: var(--bg-secondary);
            color: var(--text-primary);
            border-color: var(--border-color);
        }
        .leaflet-popup-content-wrapper {
            background: white !important;
            border-radius: 16px !important;
            border: 3px solid #3b82f6 !important;
            box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.4) !important;
            padding: 0 !important;
        }
        
        .leaflet-popup-content {
            margin: 0 !important;
            width: 100% !important;
            min-width: 260px !important;
        }
        
        .leaflet-popup-tip {
            background: white !important;
            border: 3px solid #3b82f6 !important;
            box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2) !important;
        }
        
        .leaflet-attribution-flag {
            display: none !important;
        }
        
        .menu-item-header {
            position: relative;
            transition: all 0.3s ease;
            padding: 0.5rem 0.75rem;
            font-weight: 500;
            color: #1e40af;
            white-space: nowrap;
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
        }
        
        .menu-item-header:hover {
            color: #1e3a8a;
            background: #f3f4f6;
        }
        
        .menu-item-header.active {
            color: white;
            background: linear-gradient(135deg, #1e40af, #3b82f6);
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
        }
        
        .hamburger-menu {
            display: flex;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
            padding: 8px;
        }
        
        .hamburger-menu span {
            display: block;
            width: 24px;
            height: 3px;
            background: #1e40af;
            border-radius: 2px;
            transition: all 0.3s;
        }
        
        .mobile-menu {
            position: fixed;
            top: 0;
            left: -100%;
            width: 280px;
            height: 100vh;
            background: white;
            z-index: 999;
            transition: left 0.3s ease;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            overflow-y: auto;
        }
        
        .mobile-menu.active {
            left: 0;
        }
        
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0,0,0,0.5);
            z-index: 998;
            display: none;
        }
        
        .mobile-menu-overlay.active {
            display: block;
        }
        
        .mobile-menu-header {
            background: linear-gradient(135deg, #1e40af, #3b82f6);
            color: white;
            padding: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .mobile-menu-items {
            padding: 1rem 0;
        }
        
        .mobile-menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 1rem 1.5rem;
            color: #1e40af;
            text-decoration: none;
            transition: all 0.3s;
            border-left: 4px solid transparent;
        }
        
        .mobile-menu-item:hover, .mobile-menu-item.active {
            background: #f3f4f6;
            border-left-color: #3b82f6;
        }
        
        [data-theme="dark"] .mobile-menu {
            background: var(--bg-secondary);
        }
        
        [data-theme="dark"] .mobile-menu-item {
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .mobile-menu-item:hover {
            background: #0f172a;
        }
        
        [data-theme="dark"] .mobile-menu-item:hover .mobile-menu-item.active {
            background: #1e3a8a;
        }

        .menu-item {
            position: relative;
            transition: all 0.3s ease;
            padding: 0.75rem 1rem;
            font-weight: 500;
            color: #dbeafe;
            white-space: nowrap;
        }

        .menu-item:hover {
            color: white;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 0.375rem;
        }

        .menu-item.active {
            color: white;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 0.375rem;
            font-weight: 600;
        }

        .menu-dropdown {
            position: relative;
        }

        .menu-dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 220px;
            border-radius: 0.5rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            z-index: 100;
            border: 1px solid #e5e7eb;
        }

        .menu-dropdown:hover .menu-dropdown-content {
            display: block;
        }

        .menu-dropdown-item {
            padding: 0.75rem 1rem;
            color: #374151;
            display: block;
            text-decoration: none;
            transition: all 0.2s;
            border-bottom: 1px solid #f3f4f6;
        }

        .menu-dropdown-item:hover {
            background: #f3f4f6;
            color: #1e40af;
        }

        .menu-dropdown-item:last-child {
            border-bottom: none;
        }

        .stats-row {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
        }

        .stat-label {
            color: #6b7280;
            font-weight: 500;
        }

        .stat-value {
            font-weight: 700;
            min-width: 20px;
            text-align: center;
        }

        .stat-online { color: #10b981; }
        .stat-offline { color: #ef4444; }
        .stat-total { color: #3b82f6; }
        .stat-maintenance { color: #f59e0b; }

        .cradnu-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
        }

        .cradnu-badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
        }

        .cradnu-logo {
            height: 24px;
            width: auto;
            filter: brightness(0) invert(1);
        }

        .badge-shine {
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% { left: -100%; }
            50%, 100% { left: 100%; }
        }

        footer {
            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
            border-top: 4px solid #fbbf24;
        }

        /* Responsive Video Modal */
        .video-modal-container {
            max-width: 90vw;
        }

        @media (max-width: 768px) {
            #map {
                height: 400px;
            }
            
            .stats-row {
                gap: 1rem;
            }
            
            .menu-item {
                font-size: 0.75rem;
                padding: 0.5rem 0.5rem;
            }
            
            .menu-nav {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            
            .menu-nav::-webkit-scrollbar {
                display: none;
            }
            
            .video-modal-container {
                width: 95vw;
                margin: 0.5rem;
            }
        }
        
        
        [data-theme="dark"] #videoModal .bg-white {
            background: var(--bg-secondary) !important;
        }
        
        [data-theme="dark"] #videoModal .bg-gray-50 {
            background: #0f172a !important;
        }
        
        [data-theme="dark"] #videoModal .border-gray-200 {
            border-color: var(--border-color) !important;
        }

        @media (max-width: 640px) {
            .stats-row {
                justify-content: space-between;
            }
        }
