/* Custom styles for the Nuxt UI inspired dashboard */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Theme variables */
:root {
    /* Dark theme (default) */
    --bg-primary: rgb(9 9 11);
    --bg-secondary: rgb(24 24 27);
    --bg-tertiary: rgb(39 39 42);
    --bg-elevated: rgb(63 63 70);
    --border-primary: rgb(63 63 70);
    --border-secondary: rgb(39 39 42);
    --text-primary: rgb(244 244 245);
    --text-secondary: rgb(212 212 216);
    --text-tertiary: rgb(161 161 170);
    --text-muted: rgb(113 113 122);
}

[data-theme="light"] {
    /* Clean standard light theme */
    --bg-primary: rgb(255, 255, 255);      /* Pure white */
    --bg-secondary: rgb(248, 250, 252);    /* Very light blue-gray */
    --bg-tertiary: rgb(241, 245, 249);     /* Light blue-gray */
    --bg-elevated: rgb(255, 255, 255);     /* Pure white for cards */
    --border-primary: rgb(226, 232, 240);  /* Light border */
    --border-secondary: rgb(241, 245, 249); /* Very light border */
    --text-primary: rgb(15, 23, 42);       /* Dark slate */
    --text-secondary: rgb(51, 65, 85);     /* Medium slate */
    --text-tertiary: rgb(100, 116, 139);   /* Light slate */
    --text-muted: rgb(148, 163, 184);      /* Very light slate */
}

/* Light theme overrides - Flat selectors for better compatibility */
[data-theme="light"] body {
    background-color: rgb(255 255 255) !important;
    color: rgb(24 24 27) !important;
}

/* Background colors - Standard light theme */
[data-theme="light"] .bg-zinc-950 { background-color: rgb(255, 255, 255) !important; }
[data-theme="light"] .bg-zinc-900 { background-color: rgb(248, 250, 252) !important; }
[data-theme="light"] .bg-zinc-800 { background-color: rgb(241, 245, 249) !important; }
[data-theme="light"] .bg-zinc-700 { background-color: rgb(226, 232, 240) !important; }
[data-theme="light"] .bg-zinc-600 { background-color: rgb(203, 213, 225) !important; }

/* Background with opacity - Standard light theme */
[data-theme="light"] [class*="bg-zinc-900/50"] { background-color: rgba(255, 255, 255, 0.95) !important; }
[data-theme="light"] [class*="bg-zinc-800/50"] { background-color: rgba(255, 255, 255, 0.9) !important; }
[data-theme="light"] [class*="bg-zinc-800/30"] { background-color: rgba(248, 250, 252, 0.8) !important; }
[data-theme="light"] [class*="bg-zinc-950/80"] { background-color: rgba(255, 255, 255, 0.98) !important; }

/* Text colors - Standard light theme */
[data-theme="light"] .text-zinc-50 { color: rgb(15, 23, 42) !important; }
[data-theme="light"] .text-zinc-100 { color: rgb(15, 23, 42) !important; }
[data-theme="light"] .text-zinc-200 { color: rgb(30, 41, 59) !important; }
[data-theme="light"] .text-zinc-300 { color: rgb(51, 65, 85) !important; }
[data-theme="light"] .text-zinc-400 { color: rgb(100, 116, 139) !important; }
[data-theme="light"] .text-zinc-500 { color: rgb(148, 163, 184) !important; }
[data-theme="light"] .text-zinc-600 { color: rgb(71, 85, 105) !important; }

/* Border colors - Standard light theme */
[data-theme="light"] .border-zinc-800 { border-color: rgb(226, 232, 240) !important; }
[data-theme="light"] .border-zinc-700 { border-color: rgb(241, 245, 249) !important; }
[data-theme="light"] .border-zinc-600 { border-color: rgb(203, 213, 225) !important; }

/* Hover states */
[data-theme="light"] [class*="hover:text-zinc-100"]:hover { color: rgb(24 24 27) !important; }
[data-theme="light"] [class*="hover:bg-zinc-800/30"]:hover { background-color: rgba(244, 244, 245, 0.5) !important; }
[data-theme="light"] [class*="hover:bg-primary-600"]:hover { background-color: rgb(0, 193, 106) !important; }

/* Alternative class-based selectors - Standard light theme */
.light-theme body { background-color: rgb(255, 255, 255) !important; color: rgb(15, 23, 42) !important; }
.light-theme .bg-zinc-950 { background-color: rgb(255, 255, 255) !important; }
.light-theme .bg-zinc-900 { background-color: rgb(248, 250, 252) !important; }
.light-theme .bg-zinc-800 { background-color: rgb(241, 245, 249) !important; }
.light-theme .text-zinc-50 { color: rgb(15, 23, 42) !important; }
.light-theme .text-zinc-100 { color: rgb(15, 23, 42) !important; }
.light-theme .text-zinc-300 { color: rgb(51, 65, 85) !important; }
.light-theme .text-zinc-400 { color: rgb(100, 116, 139) !important; }
.light-theme .border-zinc-800 { border-color: rgb(226, 232, 240) !important; }
.light-theme [class*="bg-zinc-900/50"] { background-color: rgba(255, 255, 255, 0.95) !important; }
.light-theme [class*="bg-zinc-800/50"] { background-color: rgba(255, 255, 255, 0.9) !important; }
.light-theme [class*="bg-zinc-950/80"] { background-color: rgba(255, 255, 255, 0.98) !important; }

/* Very aggressive light theme overrides - Standard light theme */
html.light-theme,
html.light-theme body,
html[data-theme="light"],
html[data-theme="light"] body {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(15, 23, 42) !important;
}

/* Force sidebar in light theme */
html.light-theme .fixed.inset-y-0.left-0,
html[data-theme="light"] .fixed.inset-y-0.left-0 {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-color: rgb(226, 232, 240) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Force header in light theme */
html.light-theme header,
html[data-theme="light"] header {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-color: rgb(226, 232, 240) !important;
    color: rgb(15, 23, 42) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Main content area in light theme */
html.light-theme main,
html[data-theme="light"] main {
    background-color: rgb(248, 250, 252) !important;
    color: rgb(15, 23, 42) !important;
}

/* Cards and panels in light theme */
html.light-theme .stat-card,
html[data-theme="light"] .stat-card {
    background-color: rgb(255, 255, 255) !important;
    border-color: rgb(226, 232, 240) !important;
    color: rgb(15, 23, 42) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Navigation links in light theme */
html.light-theme nav a,
html[data-theme="light"] nav a {
    color: rgb(100, 116, 139) !important;
}

html.light-theme nav a.bg-zinc-800\/50,
html[data-theme="light"] nav a.bg-zinc-800\/50,
html.light-theme nav a[class*="bg-zinc-800"],
html[data-theme="light"] nav a[class*="bg-zinc-800"] {
    background-color: rgb(241, 245, 249) !important;
    color: rgb(15, 23, 42) !important;
}

/* Map container in light theme */
html.light-theme #map,
html[data-theme="light"] #map {
    background-color: rgb(241, 245, 249) !important;
}

/* Category filters in light theme */
html.light-theme #categoryFilters .hover\:bg-zinc-800\/30:hover,
html[data-theme="light"] #categoryFilters .hover\:bg-zinc-800\/30:hover {
    background-color: rgba(241, 245, 249, 0.8) !important;
}

/* Category filter buttons in light theme */
html.light-theme #selectAllCategories,
html.light-theme #clearAllCategories,
html[data-theme="light"] #selectAllCategories,
html[data-theme="light"] #clearAllCategories {
    color: rgb(100, 116, 139) !important;
}

html.light-theme #selectAllCategories:hover,
html.light-theme #clearAllCategories:hover,
html[data-theme="light"] #selectAllCategories:hover,
html[data-theme="light"] #clearAllCategories:hover {
    color: rgb(15, 23, 42) !important;
    background-color: rgba(241, 245, 249, 0.8) !important;
}

/* Table styling in light theme */
html.light-theme .bg-zinc-900\/50,
html[data-theme="light"] .bg-zinc-900\/50,
html.light-theme [class*="bg-zinc-900/50"],
html[data-theme="light"] [class*="bg-zinc-900/50"] {
    background-color: rgb(255, 255, 255) !important;
    border-color: rgb(226, 232, 240) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Table headers in light theme */
html.light-theme thead tr,
html[data-theme="light"] thead tr {
    border-color: rgb(226, 232, 240) !important;
}

html.light-theme thead th,
html[data-theme="light"] thead th {
    color: rgb(100, 116, 139) !important;
}

/* Table body in light theme */
html.light-theme tbody,
html[data-theme="light"] tbody {
    background-color: rgb(255, 255, 255) !important;
}

html.light-theme tbody tr,
html[data-theme="light"] tbody tr {
    border-color: rgb(226, 232, 240) !important;
}

html.light-theme tbody tr:hover,
html[data-theme="light"] tbody tr:hover {
    background-color: rgb(248, 250, 252) !important;
}

html.light-theme tbody td,
html[data-theme="light"] tbody td {
    color: rgb(15, 23, 42) !important;
}

/* Badge styling in light theme - darker green */
html.light-theme .badge-primary,
html[data-theme="light"] .badge-primary {
    background-color: rgb(0, 150, 86, 0.15) !important;
    color: rgb(0, 120, 70) !important;
    border-color: rgb(0, 150, 86, 0.3) !important;
}

/* Table section headers in light theme */
html.light-theme .text-zinc-100,
html[data-theme="light"] .text-zinc-100 {
    color: rgb(15, 23, 42) !important;
}

/* Filter button in table header */
html.light-theme .bg-zinc-800\/50,
html[data-theme="light"] .bg-zinc-800\/50,
html.light-theme [class*="bg-zinc-800/50"],
html[data-theme="light"] [class*="bg-zinc-800/50"] {
    background-color: rgb(241, 245, 249) !important;
    border-color: rgb(226, 232, 240) !important;
}

html.light-theme [class*="hover:bg-zinc-800"]:hover,
html[data-theme="light"] [class*="hover:bg-zinc-800"]:hover {
    background-color: rgb(226, 232, 240) !important;
}

/* Specific table text color overrides */
html.light-theme .text-zinc-300,
html[data-theme="light"] .text-zinc-300 {
    color: rgb(51, 65, 85) !important;
}

html.light-theme .text-zinc-400,
html[data-theme="light"] .text-zinc-400 {
    color: rgb(100, 116, 139) !important;
}

/* Ensure table row hover state works */
html.light-theme .hover\:bg-zinc-800\/30:hover,
html[data-theme="light"] .hover\:bg-zinc-800\/30:hover {
    background-color: rgb(248, 250, 252) !important;
}

/* Category filter styles */
#categoryFilters .hover\:bg-zinc-800\/30:hover {
    background-color: rgba(63, 63, 70, 0.3);
}

[data-theme="light"] #categoryFilters .hover\:bg-zinc-800\/30:hover {
    background-color: rgba(228, 228, 231, 0.5) !important;
}

/* Checkbox styling for both themes */
input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #52525b;
    border-radius: 3px;
    background: #27272a;
    position: relative;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background: #00dc82;
    border-color: #00dc82;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

[data-theme="light"] input[type="checkbox"] {
    border-color: #a1a1aa;
    background: #ffffff;
}

[data-theme="light"] input[type="checkbox"]:checked {
    background: #00dc82;
    border-color: #00dc82;
}

/* Global styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--zinc-800);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--zinc-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zinc-500);
}

/* Hide Leaflet attribution flag icon */
.leaflet-control-attribution a[href*="leaflet"] {
    display: none !important;
}

/* Also hide the entire attribution if needed */
.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.7) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 10px !important;
}

/* Make image thumbnails clickable with hover effect */
.image-thumbnail {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.image-thumbnail:hover {
    opacity: 0.8;
}

/* Help modal styles */
.prose {
    color: var(--zinc-300);
    line-height: 1.75;
}

/* Mobile-specific improvements */
@media (max-width: 640px) {
    .prose h1 {
        font-size: 1.5rem;
    }
    
    .prose h2 {
        font-size: 1.25rem;
    }
    
    .prose h3 {
        font-size: 1.125rem;
    }
}

/* Touch targets for mobile */
@media (max-width: 1024px) {
    button, .cursor-pointer {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Ensure table cells are readable on mobile */
    table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.875rem;
    }
    
    table th {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.75rem;
    }
    
    /* Better map controls on mobile */
    .leaflet-control-zoom {
        margin-left: 10px !important;
        margin-top: 10px !important;
    }
    
    .leaflet-control-zoom a {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 20px !important;
    }
}

/* Sidebar animation for mobile */
#sidebar {
    transition: transform 0.3s ease-in-out;
}

/* Ensure charts are responsive */
canvas {
    max-width: 100% !important;
    height: auto !important;
}

.prose h1 {
    color: var(--zinc-100);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--zinc-800);
    padding-bottom: 0.5rem;
}

.prose h2 {
    color: var(--zinc-100);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    color: var(--zinc-200);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose strong {
    color: var(--zinc-100);
    font-weight: 600;
}

.prose code {
    background: var(--zinc-800);
    color: var(--primary-400);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.prose blockquote {
    border-left: 4px solid var(--primary-500);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--zinc-400);
}

.prose hr {
    border: none;
    height: 1px;
    background: var(--zinc-800);
    margin: 2rem 0;
}

/* Enhanced backdrop blur */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Custom animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.4s ease-out forwards;
}

/* Enhanced hover effects */
.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Stat card enhancements */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgb(0 220 130) 0%, rgb(0 193 106) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

/* Map container enhancements */
#map {
    position: relative;
    z-index: 10;
    background: var(--bg-tertiary);
    width: 100% !important;
    height: 500px !important;
    transition: background-color 0.3s ease;
}

/* Ensure map tiles are displayed correctly */
#map .leaflet-container {
    background: var(--bg-tertiary) !important;
    font-family: inherit !important;
    color: var(--text-primary) !important;
}

#map .leaflet-tile-pane {
    opacity: 1 !important;
    background: transparent !important;
}

#map .leaflet-tile {
    border: none !important;
    background: transparent !important;
    max-width: none !important;
    max-height: none !important;
    image-rendering: auto !important;
}

#map .leaflet-tile-container {
    opacity: 1 !important;
    background: transparent !important;
}

#map .leaflet-layer {
    opacity: 1 !important;
}

/* Reset any potential interference */
#map img {
    max-width: none !important;
    height: auto !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Map controls styling */
#map .leaflet-control {
    border: 1px solid var(--border-primary) !important;
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2) !important;
}

#map .leaflet-control a {
    color: var(--text-primary) !important;
    background: var(--bg-tertiary) !important;
    border-bottom: 1px solid var(--border-primary) !important;
}

#map .leaflet-control a:hover {
    background: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
}

/* Attribution control */
#map .leaflet-control-attribution {
    background: rgba(39, 39, 42, 0.8) !important;
    color: rgb(161 161 170) !important;
    font-size: 11px !important;
}

#map .leaflet-control-attribution a {
    color: rgb(0 220 130) !important;
    text-decoration: none !important;
}

#map .leaflet-control-attribution a:hover {
    color: rgb(0 193 106) !important;
}

/* Custom popup styles */
.leaflet-popup-content-wrapper {
    background: rgb(39 39 42);
    color: rgb(244 244 245);
    border-radius: 12px;
    border: 1px solid rgb(63 63 70);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-tip {
    background: rgb(39 39 42);
    border: 1px solid rgb(63 63 70);
}

.report-popup {
    padding: 8px;
}

.report-popup h6 {
    color: rgb(0 220 130);
    font-weight: 600;
    margin-bottom: 8px;
}

.report-popup p {
    margin-bottom: 4px;
    font-size: 0.875rem;
    color: rgb(161 161 170);
}

.report-popup strong {
    color: rgb(244 244 245);
}

/* Table enhancements */
tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: rgb(39 39 42 / 0.5);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.badge-primary {
    background-color: rgb(0 220 130 / 0.1);
    color: rgb(0 220 130);
    border: 1px solid rgb(0 220 130 / 0.2);
}

.badge-success {
    background-color: rgb(34 197 94 / 0.1);
    color: rgb(34 197 94);
    border: 1px solid rgb(34 197 94 / 0.2);
}

.badge-secondary {
    background-color: rgb(113 113 122 / 0.1);
    color: rgb(113 113 122);
    border: 1px solid rgb(113 113 122 / 0.2);
}

/* Button enhancements */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Loading spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Chart containers */
canvas {
    border-radius: 8px;
}

/* Mobile responsive adjustments */
@media (max-width: 1024px) {
    .pl-64 {
        padding-left: 0;
    }
    
    .fixed.inset-y-0.left-0 {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .fixed.inset-y-0.left-0.open {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    #map {
        height: 300px !important;
    }
    
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .lg\\:col-span-2 {
        grid-column: span 1 / span 1;
    }
}

/* Custom focus styles */
button:focus,
input:focus,
select:focus {
    outline: 2px solid rgb(0 220 130);
    outline-offset: 2px;
}

/* Enhanced shadows */
.shadow-enhanced {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, rgb(0 220 130) 0%, rgb(0 193 106) 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, rgb(113 113 122) 0%, rgb(82 82 91) 100%);
}

/* Custom marker popup styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 10px 15px;
    line-height: 1.4;
}

.report-popup {
    max-width: 250px;
}

.report-popup h6 {
    margin-bottom: 8px;
    color: #495057;
    font-weight: 600;
}

.report-popup p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.report-popup .badge {
    font-size: 0.75rem;
}

/* Chart container styles */
canvas {
    max-height: 300px;
}

/* Button styles */
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Status indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-new {
    background-color: #28a745;
}

.status-pending {
    background-color: #ffc107;
}

.status-resolved {
    background-color: #6c757d;
}

/* Animation for loading */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* Custom category marker styles */
.custom-category-marker {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.category-marker-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #00dc82;
    object-fit: cover;
    background: #27272a;
    box-shadow: 0 4px 12px rgba(0, 220, 130, 0.3);
    transition: all 0.3s ease;
}

.thumbnail-image:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 220, 130, 0.5);
}

.category-icon {
    width: 32px;
    height: 32px;
    background: #00dc82;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 220, 130, 0.3);
    transition: all 0.3s ease;
}

.category-marker-container:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 220, 130, 0.5);
}

.fallback-icon {
    width: 32px;
    height: 32px;
    background: #00dc82;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 220, 130, 0.3);
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 220, 130, 0.2);
    border-radius: 50%;
    animation: pulse-marker 2s infinite;
    z-index: -1;
}

@keyframes pulse-marker {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* Popup thumbnail styles */
.popup-thumbnail img {
    max-width: 200px !important;
    max-height: 150px !important;
    border-radius: 8px !important;
    margin-top: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Enhanced popup styles */
.leaflet-popup-content-wrapper {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
    margin: 12px !important;
}

.report-popup h6 {
    color: #00dc82 !important;
    margin: 0 0 12px 0 !important;
    font-weight: 600 !important;
}

.report-popup p {
    margin: 8px 0 !important;
    color: var(--text-secondary) !important;
    line-height: 1.4 !important;
}

.report-popup strong {
    color: var(--text-primary) !important;
}

.leaflet-popup-tip {
    background: var(--bg-tertiary) !important;
}

/* Mobile menu button fixes */
#mobileMenuButton {
    z-index: 50 !important;
    position: relative !important;
}

/* Ensure mobile menu button is visible in light theme */
html.light-theme #mobileMenuButton,
html[data-theme="light"] #mobileMenuButton {
    background-color: rgb(255, 255, 255) !important;
    border-color: rgb(226, 232, 240) !important;
    color: rgb(51, 65, 85) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

html.light-theme #mobileMenuButton:hover,
html[data-theme="light"] #mobileMenuButton:hover {
    background-color: rgb(248, 250, 252) !important;
    color: rgb(15, 23, 42) !important;
}

/* Force mobile menu button visibility on small screens */
@media (max-width: 1023px) {
    #mobileMenuButton {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Ensure sidebar is properly positioned on mobile */
@media (max-width: 1023px) {
    #sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease-in-out !important;
    }
    
    #sidebar:not(.-translate-x-full) {
        transform: translateX(0) !important;
    }
}

/* Fix mobile overlay in light theme */
html.light-theme #sidebarOverlay,
html[data-theme="light"] #sidebarOverlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Responsive Layout Ordering - Mobile-first approach */
@media (max-width: 1023px) {
    /* Make dashboard content a flex container for ordering */
    #dashboardContent {
        display: flex !important;
        flex-direction: column;
    }
    
    /* Map section - move to bottom on mobile */
    #dashboardContent > div:first-child {
        order: 3;
    }
    
    /* Statistics cards - place in middle */
    #dashboardContent > div:nth-child(2) {
        order: 2;
    }
    
    /* Recent reports table - move to top */
    #dashboardContent > div:nth-child(3) {
        order: 1;
    }
}

/* Hide non-functional filter button */
.bg-zinc-900\/50 .flex.items-center.justify-between button[class*="inline-flex"] {
    display: none !important;
}