/* ===== GITHUB-INSPIRED ADMIN DASHBOARD ===== */

/* Admin Body */
.admin-body {
    overflow: auto;
    background: #f6f8fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling for mobile */
* {
    -webkit-overflow-scrolling: touch;
}

/* Better touch targets for mobile */
button,
a,
.action-icon-btn,
.nav-item {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Admin Header */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #24292f;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #30363d;
    z-index: 1000;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}

.mobile-menu-toggle:hover {
    color: #58a6ff;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left i {
    font-size: 24px;
    color: #58a6ff;
}

.header-left h1 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-badge {
    background: #21262d;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #30363d;
    color: #c9d1d9;
}

.admin-username {
    font-size: 14px;
    font-weight: 500;
    color: #c9d1d9;
}

.logout-btn {
    background: transparent;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #30363d;
    border-color: #8b949e;
    color: #ffffff;
}

/* Admin Container */
.admin-container {
    display: flex;
    margin-top: 40px;
    min-height: calc(100vh - 40px);
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: #ffffff;
    border-right: 1px solid #d0d7de;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    position: fixed;
    left: 0;
    top: 40px;
    bottom: 0;
    overflow-y: auto;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    margin: 0 8px;
    color: #24292f;
    text-decoration: none;
    transition: all 0.1s ease;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
}

.nav-item:hover {
    background: #f6f8fa;
    color: #24292f;
}

.nav-item.active {
    background: #f6f8fa;
    color: #24292f;
    font-weight: 600;
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #57606a;
}

.nav-item.active i {
    color: #0969da;
}

.sidebar-footer {
    border-top: 1px solid #d0d7de;
    padding: 16px;
}

.public-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #0969da;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.public-link:hover {
    background: #0860ca;
}

.public-link i {
    font-size: 14px;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 24px;
    background: #f6f8fa;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d0d7de;
}

.section-header h2 {
    font-size: 20px;
    color: #24292f;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.section-header i {
    color: #57606a;
    font-size: 18px;
}

.refresh-btn {
    background: #ffffff;
    border: 1px solid #d0d7de;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s ease;
    font-size: 13px;
    color: #24292f;
    font-weight: 500;
}

.refresh-btn:hover {
    background: #f6f8fa;
    border-color: #8b949e;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.1s ease;
}

.stat-card:hover {
    border-color: #8b949e;
    box-shadow: 0 3px 12px rgba(140, 149, 159, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card.critical .stat-icon {
    background: #ffebe9;
    color: #cf222e;
}

.stat-card.high .stat-icon {
    background: #fff8c5;
    color: #9a6700;
}

.stat-card.medium .stat-icon {
    background: #ddf4ff;
    color: #0969da;
}

.stat-card.total .stat-icon {
    background: #dafbe1;
    color: #1a7f37;
}

.stat-card.database .stat-icon {
    background: #f3e8ff;
    color: #8250df;
}

.stat-details h3 {
    font-size: 24px;
    color: #24292f;
    margin-bottom: 4px;
    font-weight: 600;
}

.stat-details p {
    font-size: 13px;
    color: #57606a;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 16px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 16px;
    transition: all 0.1s ease;
}

.dashboard-card:hover {
    border-color: #8b949e;
    box-shadow: 0 3px 12px rgba(140, 149, 159, 0.15);
}

.dashboard-card h3 {
    font-size: 16px;
    color: #24292f;
    margin-bottom: 12px;
    font-weight: 600;
}.dashboard-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-reports-list {
    max-height: 400px;
    overflow-y: auto;
}

.recent-report-item {
    padding: 12px;
    border-left: 4px solid #e0e0e0;
    background: #ffffff;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #d0d7de;
}

.recent-report-item:hover {
    background: #f6f8fa;
    border-left-color: #0969da;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.recent-report-item.critical {
    border-left-color: #dc3545;
}

.recent-report-item.high {
    border-left-color: #fd7e14;
}

.recent-report-item.medium {
    border-left-color: #28a745;
}

.recent-report-item.low {
    border-left-color: #6c757d;
}

.recent-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.recent-report-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.recent-report-id {
    font-size: 11px;
    font-weight: 600;
    color: #57606a;
    font-family: 'Courier New', monospace;
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #d0d7de;
}

.recent-report-time {
    font-size: 11px;
    color: #57606a;
}

.recent-report-type {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-weight: 600;
}

.recent-report-type i {
    font-size: 14px;
}

.recent-report-type-text {
    font-weight: 600;
}

.recent-report-location,
.recent-report-contact {
    font-size: 12px;
    color: #57606a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.recent-report-location i,
.recent-report-contact i {
    color: #6e7781;
    font-size: 11px;
    width: 12px;
}

.status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-reported,
.status-badge.reported {
    background: #ddf4ff;
    color: #0969da;
    border: 1px solid #54aeff;
}

.status-badge.status-active,
.status-badge.active {
    background: #ffcccc;
    color: #d1242f;
    border: 1px solid #ff6b6b;
}

.status-badge.status-in-progress,
.status-badge.in-progress {
    background: #ffe4c4;
    color: #d97706;
    border: 1px solid #f97316;
}

.status-badge.status-resolved,
.status-badge.resolved {
    background: #dafbe1;
    color: #1a7f37;
    border: 1px solid #4ac26b;
}

.status-badge.status-false-alarm,
.status-badge.false-alarm {
    background: #e5e7eb;
    color: #6b7280;
    border: 1px solid #9ca3af;
}

.urgency-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.urgency-badge.urgency-critical {
    background: #dc3545;
    color: white;
}

.urgency-badge.urgency-high {
    background: #fd7e14;
    color: white;
}

.urgency-badge.urgency-medium {
    background: #28a745;
    color: white;
}

.urgency-badge.urgency-low {
    background: #6c757d;
    color: white;
}

.emergency-types-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.emergency-type-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.emergency-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.emergency-type-info {
    flex: 1;
}

.emergency-type-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.emergency-type-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.emergency-type-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.emergency-type-count {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Reports Section */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group {
    display: flex;
    gap: 8px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #57606a;
    font-size: 14px;
    pointer-events: none;
}

.search-input {
    padding: 6px 12px 6px 36px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #ffffff;
    font-size: 13px;
    color: #24292f;
    transition: all 0.1s ease;
    min-width: 280px;
}

.search-input:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.search-input::placeholder {
    color: #8b949e;
}

.filter-select {
    padding: 6px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    font-size: 13px;
    color: #24292f;
    transition: all 0.1s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid #d0d7de;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s ease;
    font-size: 13px;
    color: #24292f;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #f6f8fa;
    border-color: #8b949e;
}

/* Buttons Base */
.btn {
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s ease;
    font-size: 13px;
    font-weight: 500;
}

.btn-primary {
    background: #0969da;
    color: white;
    border: 1px solid #0969da;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s ease;
    font-size: 13px;
    font-weight: 500;
}

.btn-primary:hover {
    background: #0860ca;
    border-color: #0860ca;
}

.btn-warning {
    background: #fb8500;
    color: white;
    border: 1px solid #fb8500;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s ease;
    font-size: 13px;
    font-weight: 500;
}

.btn-warning:hover {
    background: #e67700;
    border-color: #e67700;
}

.btn-danger {
    background: #cf222e;
    color: white;
    border: 1px solid #cf222e;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s ease;
    font-size: 13px;
    font-weight: 500;
}

.btn-danger:hover {
    background: #a40e26;
    border-color: #a40e26;
}

/* Button Loading and Success States */
.btn-primary.loading,
.btn-secondary.loading {
    opacity: 0.8;
    pointer-events: none;
    position: relative;
}

.btn-primary.loading i,
.btn-secondary.loading i {
    animation: spin 1s linear infinite;
}

.btn-primary.success {
    background: #1a7f37;
    border-color: #1a7f37;
    animation: successPulse 0.5s ease-out;
}

.btn-secondary.success {
    background: #1a7f37;
    border-color: #1a7f37;
    color: white;
    animation: successPulse 0.5s ease-out;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Table */
.table-container {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #24292f;
    font-size: 13px;
    border-bottom: 1px solid #d0d7de;
}

.admin-table tbody tr {
    border-bottom: 1px solid #d0d7de;
    transition: background 0.1s ease;
    cursor: pointer;
}

.admin-table tbody tr:hover {
    background: #f6f8fa;
}

.admin-table td {
    padding: 12px 16px;
    color: #57606a;
    font-size: 13px;
}

/* Checkbox Styling */
.admin-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0969da;
    border-radius: 3px;
}

.admin-table thead input[type="checkbox"] {
    margin: 0;
}

.admin-table tbody input[type="checkbox"] {
    margin: 0;
}

.admin-table tbody tr.selected {
    background: #ddf4ff;
}

.admin-table tbody tr.selected:hover {
    background: #b6e3ff;
}

/* Bulk delete button */
#bulkDeleteBtn {
    animation: slideInRight 0.2s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.urgency-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.urgency-badge.critical {
    background: #ffebe9;
    color: #cf222e;
    border: 1px solid #ff8182;
}

.urgency-badge.high {
    background: #fff8c5;
    color: #9a6700;
    border: 1px solid #d4a72c;
}

.urgency-badge.medium {
    background: #ddf4ff;
    color: #0969da;
    border: 1px solid #54aeff;
}

.urgency-badge.low {
    background: #dafbe1;
    color: #1a7f37;
    border: 1px solid #4ac26b;
}

/* Status Badge Colors */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;
}

.status-badge.reported {
    background: #ddf4ff;
    color: #0969da;
    border: 1px solid #54aeff;
}

.status-badge.active {
    background: #ffcccc;
    color: #d1242f;
    border: 1px solid #ff6b6b;
}

.status-badge.in-progress {
    background: #ffe4c4;
    color: #d97706;
    border: 1px solid #f97316;
}

.status-badge.resolved {
    background: #dafbe1;
    color: #1a7f37;
    border: 1px solid #4ac26b;
}

.status-badge.false-alarm {
    background: #e5e7eb;
    color: #6b7280;
    border: 1px solid #9ca3af;
}

.action-buttons {
    display: flex;
    gap: 6px;
}

.action-icon-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    font-size: 13px;
    background: #ffffff;
    color: #57606a;
}

.action-icon-btn.view:hover {
    background: #0969da;
    border-color: #0969da;
    color: white;
}

.action-icon-btn.edit:hover {
    background: #8250df;
    border-color: #8250df;
    color: white;
}

.action-icon-btn.delete:hover {
    background: #cf222e;
    border-color: #cf222e;
    color: white;
}

/* Map View */
.admin-map {
    width: 100%;
    height: 600px;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    background: #ffffff;
}

.map-controls {
    display: flex;
    gap: 8px;
}

/* Custom Marker Styles */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-inner {
    width: 35px;
    height: 35px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.marker-inner i {
    transform: rotate(45deg);
    color: white;
    font-size: 16px;
}

/* Status badge on marker */
.marker-status-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transform: rotate(45deg);
    z-index: 10;
}

/* Status colors */
.marker-status-badge.status-active,
.marker-status-badge.status-reported {
    background: #d9534f;  /* Red - Active/Reported */
    animation: pulse-status 2s infinite;
}

.marker-status-badge.status-in-progress {
    background: #f0ad4e;  /* Orange - In Progress */
}

.marker-status-badge.status-resolved {
    background: #5cb85c;  /* Green - Resolved */
}

.marker-status-badge.status-false-alarm {
    background: #6c757d;  /* Gray - False Alarm */
}

@keyframes pulse-status {
    0%, 100% {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 8px rgba(217, 83, 79, 0.8);
    }
}

.marker-inner.urgency-critical {
    border: 3px solid #dc3545;
    animation: pulse-critical 2s infinite;
}

.marker-inner.urgency-high {
    border: 3px solid #fd7e14;
}

.marker-inner.urgency-medium {
    border: 3px solid #28a745;
}

.marker-inner.urgency-low {
    border: 3px solid #6c757d;
}

@keyframes pulse-critical {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.8);
    }
}

.emergency-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.popup-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    color: #0f4250;
}

.popup-details {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.8;
}

.popup-details div {
    color: #666;
}

.popup-details strong {
    color: #333;
}

.popup-view-details-btn {
    transition: all 0.3s ease;
}

.popup-view-details-btn:hover {
    background: #1a5f72 !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(15, 66, 80, 0.3);
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.analytics-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    min-height: 350px;
    transition: all 0.1s ease;
}

.analytics-card:hover {
    border-color: #8b949e;
    box-shadow: 0 3px 12px rgba(140, 149, 159, 0.15);
}

.analytics-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d0d7de;
}

.analytics-card h3 i {
    color: #57606a;
    font-size: 16px;
}

.chart-container {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Chart Styles */
.pie-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pie-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 6px;
}

.pie-svg {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 2px 4px rgba(140, 149, 159, 0.15));
}

.pie-segment {
    transition: all 0.15s ease;
    cursor: pointer;
    transform-origin: center;
}

.pie-segment:hover {
    opacity: 0.8;
}

.pie-total-label {
    font-size: 11px;
    fill: #57606a;
    font-weight: 500;
}

.pie-total-value {
    font-size: 24px;
    fill: #24292f;
    font-weight: 600;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f6f8fa;
    border-radius: 6px;
    transition: all 0.1s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.legend-item:hover {
    background: #ffffff;
    border-color: #d0d7de;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-info {
    flex: 1;
}

.legend-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #24292f;
    font-weight: 500;
    margin-bottom: 2px;
}

.legend-label i {
    width: 14px;
    text-align: center;
    font-size: 12px;
    color: #57606a;
}

.legend-value {
    font-size: 12px;
    color: #57606a;
    font-weight: 400;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.chart-label {
    min-width: 100px;
    font-size: 13px;
    color: #24292f;
    display: flex;
    align-items: center;
    gap: 6px;
}

.urgency-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.chart-bar-container {
    flex: 1;
    height: 18px;
    background: #f6f8fa;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #d0d7de;
}

.chart-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
}

.chart-value {
    min-width: 60px;
    text-align: right;
    font-size: 13px;
    color: #57606a;
    font-weight: 500;
}

.timeline-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    gap: 10px;
    padding: 12px 8px;
    background: #f6f8fa;
    border-radius: 6px;
    border: 1px solid #d0d7de;
}

.timeline-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 70px;
}

.timeline-bar-container {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: flex-end;
    position: relative;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #d0d7de;
}

.timeline-bar-fill {
    width: 100%;
    background: #0969da;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    min-height: 6px;
}

.timeline-bar:hover .timeline-bar-fill {
    background: #0860ca;
}

.timeline-count {
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.timeline-label {
    font-size: 12px;
    color: #57606a;
    text-align: center;
    word-wrap: break-word;
    font-weight: 500;
    line-height: 1.2;
}

.response-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
}

.response-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f6f8fa;
    border-radius: 6px;
    transition: all 0.1s ease;
    border: 1px solid transparent;
}

.response-item:hover {
    background: #ffffff;
    border-color: #d0d7de;
}

.response-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.response-info {
    flex: 1;
}

.response-label {
    font-size: 13px;
    color: #24292f;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.response-stats {
    font-size: 13px;
    color: #57606a;
    font-weight: 400;
}

.response-stats strong {
    color: #24292f;
    font-size: 16px;
    font-weight: 600;
    margin-right: 2px;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.settings-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.settings-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-group {
    margin-bottom: 20px;
}

.settings-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.settings-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.settings-input:focus {
    outline: none;
    border-color: #0f4250;
}

.settings-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-actions button {
    justify-content: center;
}

/* Modals */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.admin-modal.show {
    display: flex;
}

.admin-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: min(90vh, calc(100vh - 80px));
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-modal-content.large {
    max-width: 900px;
}

.admin-modal-content.small {
    max-width: 400px;
}

.modal-header {
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0f4250, #1a5f72);
    color: white;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.modal-header.danger {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

.modal-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f9f9f9;
    flex-shrink: 0;
    border-radius: 0 0 12px 12px;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h3 {
    font-size: 16px;
    color: #0f4250;
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.detail-value {
    color: #333;
    font-size: 14px;
    text-align: right;
}

/* Google Maps Button */
.btn-google-maps {
    background: #4285f4;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
    min-width: 38px;
    height: 38px;
}

.btn-google-maps:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.5);
}

.btn-google-maps:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
}

.btn-google-maps i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-google-maps:hover i {
    transform: scale(1.1);
}

.detail-notes {
    background: white;
    padding: 15px;
    border-radius: 8px;
    color: #666;
    line-height: 1.6;
    white-space: pre-wrap;
}

.relief-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.relief-item-tag {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #0f4250;
    border: 1px solid #0f4250;
}

.detail-image {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}

.detail-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.detail-images-grid .detail-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.detail-images-grid .detail-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image Gallery Lightbox */
.image-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.image-gallery-modal.show {
    display: flex;
}

.gallery-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.gallery-close:hover {
    background: white;
    color: #0f4250;
    transform: rotate(90deg);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: white;
    color: #0f4250;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-50%);
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

.gallery-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.detail-map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #0f4250;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #0f4250;
}

.delete-warning {
    background: #ffebee;
    padding: 15px;
    border-radius: 8px;
    color: #c62828;
    margin: 10px 0;
    text-align: center;
}

/* Notifications */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10001;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.admin-notification.fade-out {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.admin-notification.success {
    border-left: 4px solid #4caf50;
}

.admin-notification.error {
    border-left: 4px solid #ff5252;
}

.admin-notification.warning {
    border-left: 4px solid #ff9800;
}

.admin-notification.info {
    border-left: 4px solid #2196f3;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-content i {
    font-size: 20px;
}

.admin-notification.success .notification-content i {
    color: #4caf50;
}

.admin-notification.error .notification-content i {
    color: #ff5252;
}

.admin-notification.warning .notification-content i {
    color: #ff9800;
}

.admin-notification.info .notification-content i {
    color: #2196f3;
}

.notification-content span {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.notification-close {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    transition: color 0.3s ease;
    margin-left: 10px;
}

.notification-close:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 200px;
    }

    .admin-main {
        margin-left: 200px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .pie-chart-container {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header */
    .admin-header {
        padding: 0 12px;
        height: 50px;
    }

    .header-left h1 {
        font-size: 16px;
    }
    
    .header-left i {
        font-size: 20px;
    }
    
    .admin-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Show sidebar overlay when menu is open */
    .sidebar-overlay {
        display: block;
    }

    /* Sidebar - Hidden by default on mobile, shown when menu is toggled */
    .admin-sidebar {
        width: 250px;
        transform: translateX(-100%);
        z-index: 1001;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }

    .nav-item span,
    .public-link span {
        display: block;
    }

    .nav-item,
    .public-link {
        justify-content: flex-start;
        padding: 12px 20px;
    }
    
    .nav-item i,
    .public-link i {
        margin-right: 12px;
        font-size: 18px;
    }

    /* Main content */
    .admin-container {
        top: 50px;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 12px;
        width: 100%;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 18px;
    }
    
    .stat-details h3 {
        font-size: 22px;
    }
    
    .stat-details p {
        font-size: 12px;
    }

    /* Section headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }

    /* Header actions */
    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        font-size: 14px;
    }

    /* Filters */
    .filter-group {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .filter-select {
        width: 100%;
        font-size: 14px;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .refresh-btn {
        width: 100%;
        justify-content: center;
    }

    /* Table */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 800px;
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }
    
    .action-buttons {
        gap: 4px;
    }
    
    .action-icon-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* Detail grid */
    .detail-grid {
        grid-template-columns: 1fr;
    }

    /* Username */
    .admin-username {
        display: none;
    }

    /* Charts */
    .pie-chart-container {
        flex-direction: column;
        gap: 16px;
    }

    .pie-svg {
        width: 160px;
        height: 160px;
    }

    .pie-legend {
        width: 100%;
    }
    
    .legend-item {
        font-size: 13px;
    }
    
    /* Dashboard cards */
    .dashboard-card {
        padding: 12px;
    }
    
    .dashboard-card h3 {
        font-size: 14px;
    }
    
    /* Recent reports */
    .recent-report-item {
        padding: 10px;
    }
    
    /* Analytics */
    .analytics-card {
        padding: 12px;
        min-height: auto;
    }
    
    .chart-container {
        min-height: 250px;
    }
    
    /* Map */
    .admin-map {
        height: 400px;
    }
    
    /* Modals */
    .admin-modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px auto;
        max-height: calc(100vh - 100px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .modal-body {
        padding: 12px;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-footer {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-control {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    /* Image grid */
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .image-item {
        height: 80px;
    }

    /* Display additional notes fully without scroll on tablet */
    .detail-notes {
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    /* Notifications */
    .admin-notification {
        right: 10px;
        top: 60px;
        max-width: calc(100% - 20px);
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .admin-header {
        height: 48px;
    }
    
    .header-left h1 {
        font-size: 14px;
    }
    
    .logout-btn span {
        display: none;
    }
    
    .logout-btn {
        padding: 6px 10px;
    }
    
    .admin-sidebar {
        width: 280px;
    }
    
    .admin-container {
        top: 48px;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 10px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-details h3 {
        font-size: 20px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
    
    .admin-table {
        min-width: 700px;
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
    }
    
    .pie-svg {
        width: 140px;
        height: 140px;
    }
    
    .admin-modal-content {
        width: 98%;
        max-width: 98%;
        max-height: min(80vh, calc(100vh - 120px));
        height: auto;
        margin: 10px auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .modal-header {
        padding: 8px 15px;
    }

    .modal-header h2 {
        font-size: 15px;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .modal-body {
        padding: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

    .modal-footer {
        padding: 8px 10px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .modal-footer .btn-primary,
    .modal-footer .btn-secondary,
    .modal-footer .btn-danger {
        font-size: 12px;
        padding: 6px 10px;
        flex: 1;
        min-width: 70px;
    }

    /* Display additional notes fully without scroll on mobile */
    .detail-notes {
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    /* Stack stat cards in a more compact way */
    .stats-grid {
        gap: 8px;
    }

    /* Reduce dashboard grid gap */
    .dashboard-grid {
        gap: 10px;
    }
    
    /* Make buttons smaller */
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* ===== EVACUATION CENTERS SECTION ===== */
.evac-centers-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.evac-map-container {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    overflow: hidden;
    position: relative;
}

.evac-map {
    width: 100%;
    height: 600px;
}

/* Responsive evacuation map for tablets */
@media (max-width: 1024px) {
    .evac-map {
        height: 400px;
    }
}

/* Responsive evacuation map for mobile */
@media (max-width: 768px) {
    .evac-map {
        height: 300px;
    }
}

/* Responsive evacuation map for small phones */
@media (max-width: 480px) {
    .evac-map {
        height: 250px;
    }
}

.map-instructions {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(9, 105, 218, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.map-instructions.show {
    display: flex;
}

.map-instructions i {
    font-size: 16px;
    flex-shrink: 0;
}

.evac-list-container {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.evac-list-container h3 {
    font-size: 16px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d0d7de;
}

.count-badge {
    background: #0969da;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: auto;
}

.evac-centers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #57606a;
}

.empty-state i {
    font-size: 48px;
    color: #d0d7de;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    font-weight: 500;
    color: #24292f;
    margin-bottom: 8px;
}

.empty-state small {
    font-size: 13px;
    color: #57606a;
}

.evac-center-card {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 16px;
    transition: all 0.1s ease;
    cursor: pointer;
}

.evac-center-card:hover {
    background: #ffffff;
    border-color: #0969da;
    box-shadow: 0 2px 8px rgba(9, 105, 218, 0.1);
}

.evac-center-card.selected {
    background: #ddf4ff;
    border-color: #0969da;
}

.evac-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.evac-card-title {
    flex: 1;
}

.evac-card-title h4 {
    font-size: 14px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evac-card-title h4 i {
    color: #0969da;
    font-size: 14px;
}

.evac-card-address {
    font-size: 12px;
    color: #57606a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.evac-card-address i {
    font-size: 10px;
}

.evac-card-actions {
    display: flex;
    gap: 4px;
}

.evac-card-actions .action-icon-btn {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

.evac-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evac-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.evac-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #57606a;
}

.evac-info-item i {
    width: 14px;
    text-align: center;
    font-size: 11px;
    color: #0969da;
}

.evac-info-item strong {
    color: #24292f;
}

.evac-card-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.facility-tag {
    background: #ffffff;
    border: 1px solid #d0d7de;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #57606a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.facility-tag i {
    font-size: 10px;
    color: #0969da;
}

.evac-status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.evac-status-badge.status-active {
    background: #dafbe1;
    color: #1a7f37;
}

.evac-status-badge.status-full {
    background: #fff8c5;
    color: #9a6700;
}

.evac-status-badge.status-inactive {
    background: #f6f8fa;
    color: #57606a;
}

/* Evacuation Center Modal Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group.half {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.1s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.form-control:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #f6f8fa;
    color: #57606a;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #24292f;
    margin-bottom: 8px;
}

.form-group label i {
    color: #0969da;
    margin-right: 4px;
    width: 14px;
    text-align: center;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.1s ease;
    font-size: 13px;
    color: #24292f;
}

.checkbox-label:hover {
    background: #ffffff;
    border-color: #0969da;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0969da;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #0969da;
}

.location-display {
    background: #f6f8fa;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    font-size: 13px;
    color: #57606a;
    text-align: center;
}

.location-display.set {
    background: #ddf4ff;
    border-color: #0969da;
    color: #0969da;
    font-weight: 500;
}

/* Evacuation Center Marker */
.evac-center-marker {
    background: transparent;
    border: none;
}

.evac-marker-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0969da;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.2s ease;
}

.evac-marker-inner:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.4);
}

.evac-marker-inner i {
    color: white;
    font-size: 18px;
}

.evac-marker-inner.status-full {
    background: #fb8500;
}

.evac-marker-inner.status-inactive {
    background: #6c757d;
    opacity: 0.6;
}

/* Evacuation Center Popup */
.evac-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.evac-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d0d7de;
}

.evac-popup-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: #24292f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evac-popup-header i {
    color: #0969da;
    font-size: 16px;
}

.evac-popup-body {
    font-size: 13px;
    line-height: 1.6;
    color: #57606a;
}

.evac-popup-body div {
    margin-bottom: 6px;
}

.evac-popup-body strong {
    color: #24292f;
    font-weight: 600;
}

.evac-popup-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.evac-popup-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d0d7de;
    display: flex;
    gap: 8px;
}

.evac-popup-actions button {
    flex: 1;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    background: #ffffff;
    color: #24292f;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.evac-popup-actions button:hover {
    background: #f6f8fa;
    border-color: #0969da;
    color: #0969da;
}

.evac-popup-actions button.delete:hover {
    background: #ffebe9;
    border-color: #cf222e;
    color: #cf222e;
}

/* Leaflet Popup Responsive Fixes */
.leaflet-popup {
    margin-bottom: 0;
}

.leaflet-popup-content-wrapper {
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

.leaflet-popup-content {
    margin: 0;
    max-height: calc(80vh - 40px);
    overflow-y: auto;
}

/* Mobile responsive popups */
@media (max-width: 768px) {
    .leaflet-popup-content-wrapper {
        max-width: 85vw;
        max-height: 70vh;
    }

    .leaflet-popup-content {
        max-height: calc(70vh - 40px);
        font-size: 12px;
    }

    .evac-popup-actions button {
        padding: 5px 8px;
        font-size: 11px;
    }

    .evac-popup-body {
        font-size: 12px;
    }

    .evac-popup-header h4 {
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .leaflet-popup-content-wrapper {
        max-width: 95vw;
        max-height: 65vh;
    }

    .leaflet-popup-content {
        max-height: calc(65vh - 40px);
        font-size: 11px;
    }

    .evac-popup-actions {
        flex-direction: column;
        gap: 6px;
    }

    .evac-popup-actions button {
        padding: 4px 6px;
        font-size: 10px;
        flex: 1;
    }

    .evac-popup-body {
        font-size: 11px;
    }

    .evac-popup-header h4 {
        font-size: 13px;
    }

    .evac-popup-header {
        gap: 4px;
        margin-bottom: 8px;
    }
}

/* Image Upload Preview Styles */
.image-preview-container {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 16px;
    background: #f6f8fa;
}

.image-preview-label {
    font-size: 14px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.image-preview-item {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 8px;
    background: white;
    transition: all 0.2s;
}

.image-preview-item:hover {
    border-color: #0969da;
    box-shadow: 0 1px 3px rgba(9, 105, 218, 0.1);
}

.image-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.preview-info {
    font-size: 12px;
    color: #57606a;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-info span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-size {
    color: #8b949e;
    font-weight: 500;
}

.preview-loading,
.preview-error {
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #57606a;
}

.preview-error {
    color: #cf222e;
}

.preview-loading i {
    font-size: 24px;
}

.preview-error i {
    font-size: 24px;
}

/* Update Images Display in Detail View */
.detail-update-images {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #d0d7de;
}

.detail-update-images h3 {
    font-size: 16px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-update-images h3 i {
    color: #0969da;
}

@media (max-width: 1024px) {
    .evac-centers-container {
        grid-template-columns: 1fr;
    }
    
    .evac-list-container {
        max-height: 400px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .image-previews {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ===== SKELETON LOADING (FACEBOOK-STYLE) ===== */

/* Skeleton base styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Skeleton for stat cards */
.stat-card.skeleton-loading {
    pointer-events: none;
}

.stat-card.skeleton-loading .stat-icon i {
    visibility: hidden;
}

.stat-card.skeleton-loading .stat-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e8eef3 25%, #d8dee3 50%, #e8eef3 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.stat-card.skeleton-loading h3,
.stat-card.skeleton-loading p {
    color: transparent;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    display: inline-block;
}

.stat-card.skeleton-loading h3 {
    width: 60px;
    height: 32px;
    margin-bottom: 8px;
}

.stat-card.skeleton-loading p {
    width: 100px;
    height: 16px;
}

/* Skeleton for recent reports list */
.skeleton-recent-report {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.skeleton-recent-report:last-child {
    border-bottom: none;
}

.skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line.title {
    width: 70%;
    height: 18px;
}

.skeleton-line.subtitle {
    width: 50%;
    height: 14px;
}

.skeleton-line.time {
    width: 30%;
    height: 12px;
}

/* Skeleton for emergency types chart */
.skeleton-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
}

.skeleton-chart-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Skeleton for table rows */
.skeleton-table-row {
    height: 53px;
}

.skeleton-table-row td {
    padding: 12px 16px;
}

.skeleton-table-cell {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    display: inline-block;
}

.skeleton-table-cell.id {
    width: 80px;
}

.skeleton-table-cell.type {
    width: 120px;
}

.skeleton-table-cell.urgency {
    width: 70px;
    height: 24px;
    border-radius: 12px;
}

.skeleton-table-cell.location {
    width: 150px;
}

.skeleton-table-cell.contact {
    width: 100px;
}

.skeleton-table-cell.time {
    width: 90px;
}

.skeleton-table-cell.status {
    width: 80px;
}

.skeleton-table-cell.actions {
    display: flex;
    gap: 8px;
}

.skeleton-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Hide real content during skeleton loading */
.skeleton-loading-container {
    min-height: 200px;
}

/* Skeleton checkbox placeholder */
.skeleton-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    display: inline-block;
}

/* Confirmation Modal */
#confirmationModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease-out;
}

#confirmationModal .modal-content {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#confirmationModal .btn-danger:hover {
    background: #c82333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#confirmationModal .btn-secondary:hover {
    background: #6c757d !important;
    transform: translateY(-1px);
}

