/* ==========================================
   KENYA TRAINING HEATMAP - COMPLETE CSS
   ========================================== */

/* Map Container Styling */
.leaflet-container {
    background: #f8fafc;
    z-index: 1;
    border-radius: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.leaflet-control-container {
    z-index: 10;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.leaflet-popup-tip {
    background: white;
}

/* Tooltip Styling */
.county-tooltip {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    max-width: 220px;
}

/* Modal Styling */
.modal-overlay {
    backdrop-filter: blur(8px);
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.6);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.slide-in {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(-20px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

.scale-in {
    animation: scaleIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.8);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* Card Hover Effects */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.insight-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%), 
                linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.1;
    pointer-events: none;
}

.ai-badge {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Table Styling */
.county-row {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.county-row:hover {
    background: linear-gradient(90deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.intensity-bar {
    height: 8px;
    border-radius: 4px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.intensity-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Facility Tags */
.facility-tag {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.facility-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.facility-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.facility-tag:hover::before {
    left: 100%;
}

/* Loading Animations */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pulse-dot {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* Badge Colors */
.badge-excellent {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.badge-good {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.badge-fair {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.badge-limited {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.badge-none {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* County Avatar Styling */
.county-avatar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.county-avatar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.county-avatar:hover::before {
    width: 100%;
    height: 100%;
}

/* Form Controls */
input[type="text"], input[type="search"], select {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e5e7eb;
}

input[type="text"]:focus, input[type="search"]:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Search Input Styling */
.search-input-container {
    position: relative;
}

.search-input-container::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    z-index: 10;
}

/* Progress Indicators */
.progress-bar {
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: progress-shimmer 1.5s ease-in-out infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stat-card {
        min-width: 100px;
        padding: 12px;
    }
    
    .county-tooltip {
        font-size: 12px;
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .stat-card {
        min-width: 120px;
    }
    
    .facility-tag {
        font-size: 10px;
        padding: 6px 8px;
    }
    
    .county-tooltip {
        font-size: 11px;
        padding: 8px 12px;
        max-width: 180px;
    }
    
    .insight-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}

@media (max-width: 640px) {
    .leaflet-container {
        height: 400px !important;
    }
    
    .modal-content {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    
    .stat-card {
        padding: 8px;
        min-width: 90px;
    }
    
    .facility-tag {
        font-size: 9px;
        padding: 4px 6px;
    }
}

/* Scrollbar Styling */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus States */
input:focus, select:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Trend Indicators */
.trend-up {
    color: #10b981;
    animation: bounce 1s infinite;
}

.trend-down {
    color: #ef4444;
    animation: bounce 1s infinite;
}

.trend-stable {
    color: #6b7280;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Glass Morphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Shadow Utilities */
.shadow-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.shadow-glow-green {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.shadow-glow-red {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Toast Notifications */
.toast {
    min-width: 300px;
    max-width: 500px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Map County Hover Effects */
.leaflet-interactive:hover {
    filter: brightness(1.1);
    transition: filter 0.2s ease;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .leaflet-container {
        height: 400px !important;
    }
    
    .modal-overlay {
        position: relative !important;
        background: white !important;
    }
    
    .insight-card {
        background: #f3f4f6 !important;
        color: #1f2937 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .county-tooltip {
        background: #000;
        border: 2px solid #fff;
    }
    
    .facility-tag {
        border: 2px solid currentColor;
    }
    
    .btn-primary, .btn-success {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .intensity-bar::after {
        animation: none;
    }
    
    .ai-badge {
        animation: none;
        background: #4ecdc4;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .leaflet-container {
        background: #1f2937;
        filter: invert(1) hue-rotate(180deg);
    }
    
    .county-tooltip {
        background: rgba(0, 0, 0, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .modal-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.border-gradient {
    border-image: linear-gradient(45deg, #3b82f6, #10b981) 1;
}

.backdrop-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Interactive Elements */
.interactive:hover {
    cursor: pointer;
}

.interactive:active {
    transform: scale(0.98);
}

/* Container Utilities */
.container-responsive {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-responsive {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        padding: 0 3rem;
    }
}

/* Enhanced Heatmap Dashboard Styles */

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat Cards */
.stat-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* AI Insights Card */
.insight-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.ai-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* County Tooltip */
.county-tooltip {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 250px;
}

/* Badge Styles */
.badge-excellent {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-good {
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-fair {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.badge-limited {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge-none {
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Facility Tag */
.facility-tag {
    transition: all 0.3s ease;
    cursor: pointer;
}

.facility-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Map Container */
#kenya-heatmap-container {
    position: relative;
    z-index: 1;
}

/* Leaflet Overrides */
.leaflet-container {
    background: #f8fafc;
    border-radius: 12px;
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.leaflet-tooltip {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .county-tooltip {
        max-width: 200px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .facility-tag {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .modal-overlay > div {
        width: 95%;
        margin: 1rem auto;
        max-height: 90vh;
    }
}

@media (max-width: 640px) {
    .gradient-text {
        font-size: 1.75rem;
    }
    
    .insight-card {
        padding: 1rem;
    }
    
    .glass {
        padding: 0.75rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
}

/* Performance Animations */
.county-row {
    transition: background-color 0.2s ease;
}

.county-row:hover {
    background-color: #f9fafb;
}

.county-avatar {
    transition: transform 0.3s ease;
}

.county-row:hover .county-avatar {
    transform: scale(1.1);
}

/* Intensity Bar Animation */
.intensity-bar {
    transition: width 0.8s ease-in-out;
    animation: fillBar 1s ease-in-out;
}

@keyframes fillBar {
    from { width: 0%; }
}

/* Focus States for Accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .modal-overlay {
        display: none !important;
    }
    
    .btn-primary,
    .btn-success {
        background: #6b7280 !important;
        color: white !important;
    }
    
    .gradient-text {
        color: #111827 !important;
        -webkit-text-fill-color: #111827 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .county-tooltip {
        background: black;
        border: 2px solid white;
    }
    
    .badge-excellent {
        background-color: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
    
    .badge-good {
        background-color: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
    }
    
    .fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .stat-card,
    .facility-tag,
    .county-avatar {
        transition: none;
    }
    
    .intensity-bar {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .county-tooltip {
        background: rgba(17, 24, 39, 0.95);
        border: 1px solid rgba(75, 85, 99, 0.3);
    }
    
    .leaflet-popup-content-wrapper {
        background: rgba(17, 24, 39, 0.95);
        color: #f9fafb;
    }
    
    .modal-overlay > div {
        background: #1f2937;
        color: #f9fafb;
        border: 1px solid #374151;
    }
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.loading-overlay.dark {
    background: rgba(17, 24, 39, 0.9);
    color: #f9fafb;
}

/* Success/Error States */
.status-success {
    color: #059669;
    background-color: #d1fae5;
    border-color: #a7f3d0;
}

.status-error {
    color: #dc2626;
    background-color: #fee2e2;
    border-color: #fecaca;
}

.status-warning {
    color: #d97706;
    background-color: #fef3c7;
    border-color: #fed7aa;
}

.status-info {
    color: #2563eb;
    background-color: #dbeafe;
    border-color: #bfdbfe;
}

/* Interactive Elements */
.interactive-element {
    cursor: pointer;
    transition: all 0.2s ease;
}

.interactive-element:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.interactive-element:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Table Enhancements */
.enhanced-table {
    border-collapse: separate;
    border-spacing: 0;
}

.enhanced-table th {
    position: sticky;
    top: 0;
    background: #f9fafb;
    z-index: 10;
}

.enhanced-table tr:nth-child(even) {
    background: #f9fafb;
}

.enhanced-table tr:hover {
    background: #f3f4f6;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Micro-interactions */
.micro-bounce {
    animation: microBounce 0.5s ease-in-out;
}

@keyframes microBounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    80% {
        transform: translateY(-1px);
    }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
}