/* LSPU Emergency Response System - Modern Design System */

:root {
  /* LSPU Official Branding Colors - Academic Professional Scheme */
  /* Primary: Deep Royal Blue / Navy Blue */
  --primary-blue: #1e3a8a; /* Deep Royal Blue - Headers, Navigation, Footer */
  --primary-blue-light: #2563eb; /* Lighter blue for gradients */
  --primary-blue-dark: #1e40af; /* Darker blue for hover states */
  --primary-navy: #0f172a; /* Navy Blue - Deepest shade */
  
  /* Primary: Golden Yellow / Mustard Yellow - Highlights & CTAs */
  --primary-yellow: #fbbf24; /* Golden Yellow - Buttons, Accents */
  --primary-yellow-light: #fcd34d; /* Light yellow for hover */
  --primary-yellow-dark: #f59e0b; /* Darker yellow - Mustard */
  --accent-yellow: #fbbf24; /* Call-to-action elements */
  
  /* Secondary Colors - Academic Clean */
  --bg-white: #ffffff; /* White for backgrounds */
  --bg-light-gray: #f5f5f5; /* Light gray for sections, cards, dividers */
  --bg-gray: #e5e7eb; /* Medium gray for borders */
  
  /* LSPU Logo Section Colors (for reference) */
  --secondary-green: #10b981; /* Agriculture section */
  --secondary-light-blue: #60a5fa; /* Fisheries section */
  --secondary-brown: #92400e; /* Technology section */
  --secondary-gold: #f59e0b; /* Gold accent */
  --secondary-orange: #f97316; /* Orange flame */
  
  /* Legacy red for emergency/error states */
  --primary-red: #dc2626;
  --primary-red-light: #fca5a5;
  --primary-red-dark: #991b1b;
  
  /* Secondary Colors */
  --secondary-blue: #2563eb;
  --secondary-blue-light: #93c5fd;
  --secondary-blue-dark: #1d4ed8;
  
  /* Neutral Colors - Academic Professional */
  --gray-50: #f5f5f5; /* Light gray for sections */
  --gray-100: #f5f5f5;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-4);
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Responsive grid classes */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Card Component */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  border: 1px solid var(--bg-light-gray);
  border-left: 3px solid var(--primary-blue);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: white;
  border-bottom: 2px solid var(--accent-yellow);
  padding: var(--space-6);
  margin-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-2);
}

.card-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: var(--space-2);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: white;
  border: 1px solid var(--primary-blue-dark);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-yellow);
}

/* Golden Yellow for Call-to-Action buttons */
.btn-cta,
.btn-submit,
.btn-save,
.btn-login,
.btn-view {
  background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--primary-yellow-dark) 100%);
  color: var(--primary-navy);
  font-weight: 600;
  border: 1px solid var(--primary-yellow-dark);
}

.btn-cta:hover:not(:disabled),
.btn-submit:hover:not(:disabled),
.btn-save:hover:not(:disabled),
.btn-login:hover:not(:disabled),
.btn-view:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-yellow-light) 0%, var(--accent-yellow) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
  border-color: var(--primary-yellow-dark);
}

.btn-secondary {
  background: var(--bg-light-gray);
  color: var(--primary-blue);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-200);
  color: var(--primary-blue-dark);
  border-color: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: #d1d5db;
  border: 1px solid #d1d5db;
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--primary-red);
  color: white;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

/* Form Components */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--bg-light-gray);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  background: var(--bg-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  border-left: 3px solid var(--accent-yellow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: var(--space-10);
}

/* File Upload Component */
.file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  background-color: var(--gray-50);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.file-upload-label:hover {
  border-color: var(--accent-yellow);
  background-color: rgba(251, 191, 36, 0.1);
}

.file-upload-icon {
  font-size: var(--font-size-4xl);
  color: var(--gray-400);
  margin-bottom: var(--space-4);
}

.file-upload-text {
  color: var(--gray-600);
  font-weight: 500;
}

.file-upload-hint {
  color: var(--gray-500);
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pending {
  background-color: var(--warning);
  color: white;
}

.badge-processing {
  background-color: var(--info);
  color: white;
}

.badge-completed {
  background-color: var(--success);
  color: white;
}

.badge-emergency {
  background-color: var(--error);
  color: white;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  border-bottom: 2px solid var(--accent-yellow);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

.navbar-brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.navbar-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.navbar-brand {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.navbar-nav {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.navbar-nav .nav-link {
  margin-right: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  margin-right: 16px;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Alert Components */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border-left: 4px solid;
}

.alert-success {
  background-color: rgb(16 185 129 / 0.1);
  border-left-color: var(--success);
  color: rgb(5 46 22);
}

.alert-warning {
  background-color: rgb(245 158 11 / 0.1);
  border-left-color: var(--warning);
  color: rgb(120 53 15);
}

.alert-error {
  background-color: rgb(239 68 68 / 0.1);
  border-left-color: var(--error);
  color: rgb(127 29 29);
}

.alert-info {
  background-color: rgb(59 130 246 / 0.1);
  border-left-color: var(--info);
  color: rgb(30 58 138);
}

/* Loading States */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  border-top-color: var(--primary-red);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

/* Map Container */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: white;
  margin-top: 4rem;
  border-top: 3px solid var(--accent-yellow);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
}

.footer-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin: 0 0 1rem 0;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin: 0 0 0.5rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}





/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.border { border: 1px solid var(--gray-200); }
.border-2 { border: 2px solid var(--gray-200); }

/* ========================================
   ADMIN DASHBOARD STYLES
   ======================================== */

/* Professional Dashboard Layout */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --light-bg: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Blurred Background for Admin Dashboard */
.dashboard-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/cover.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(15px);
    -webkit-filter: blur(15px);
    opacity: 0.6;
    z-index: 0;
    transform: scale(1.1);
    will-change: transform;
}

.dashboard-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-right: 2px solid var(--accent-yellow);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo img {
    border-radius: 50%;
    border: 2px solid white;
    width: 50px;
    height: 50px;
    object-fit: cover;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.logo-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.logo-text p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.system-status {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #10b981;
}

.status-dot.offline {
    background: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
    padding: 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) rgba(0, 0, 0, 0.2);
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    margin: 8px 0;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-nav::-webkit-scrollbar-thumb:active {
    background: rgba(251, 191, 36, 0.6);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
    margin: 2px 0;
    border-radius: 0 8px 8px 0;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.3);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-yellow);
    border-left: 3px solid var(--accent-yellow);
    border: 1px solid rgba(251, 191, 36, 0.3);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-details h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.user-details p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.logout-btn {
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn:hover {
    background: #EF4444 !important;
    border-color: #EF4444 !important;
    color: white !important;
}

.logout-btn:hover i {
    color: white !important;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    width: calc(100% - 250px);
    position: relative;
    z-index: 2;
}

/* Admin Sections */
.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

/* Card Styles */
.card {
    background: var(--bg-white);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bg-light-gray);
    border-left: 3px solid var(--primary-blue);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 2px solid var(--accent-yellow);
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: white;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
}

.card-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.card-body {
    padding: 24px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: white;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-blue-dark);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-yellow);
}

/* Academic CTA Buttons - Golden Yellow */
button[type="submit"],
input[type="submit"],
.btn-submit,
.btn-save,
.btn-login,
.btn-view {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--primary-yellow-dark) 100%) !important;
    color: var(--primary-navy) !important;
    font-weight: 600 !important;
    border: 1px solid var(--primary-yellow-dark) !important;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.btn-submit:hover,
.btn-save:hover,
.btn-login:hover,
.btn-view:hover {
    background: linear-gradient(135deg, var(--primary-yellow-light) 0%, var(--accent-yellow) 100%) !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4) !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--light-bg);
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    border-left: 3px solid var(--accent-yellow);
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th {
    background: var(--light-bg);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--light-bg);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-processing {
    background: #dbeafe;
    color: #1e40af;
}

.badge-assigned {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-completed {
    background: #d1fae5;
    color: #065f46;
}

.badge-fire {
    background: #fecaca;
    color: #991b1b;
}

.badge-flood {
    background: #dbeafe;
    color: #1e40af;
}

.badge-accident {
    background: #fef3c7;
    color: #92400e;
}

.badge-medical {
    background: #d1fae5;
    color: #065f46;
}

.badge-other {
    background: #e5e7eb;
    color: #374151;
}

.badge-priority-1 {
    background: #fecaca;
    color: #991b1b;
}

.badge-priority-2 {
    background: #fed7aa;
    color: #c2410c;
}

.badge-priority-3 {
    background: #fef3c7;
    color: #92400e;
}

.badge-priority-4 {
    background: #d1fae5;
    color: #065f46;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sidebar Footer and Logout Button Styles */
.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
}

.user-details h4 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.user-details p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.logout-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logout-btn:hover {
  background: #EF4444 !important;
  border-color: #EF4444 !important;
  color: white !important;
}

.logout-btn:active {
  transform: translateY(0);
}

.logout-btn i {
  font-size: 1rem;
}

.logout-btn:hover i {
  color: white !important;
}

/* Weather Metric Card Styles */
.weather-metric-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.weather-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.weather-metric-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.weather-metric-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.weather-metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.weather-metric-status {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-number {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
}

.page-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 2px solid var(--accent-yellow);
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 60px;
        left: -250px;
        height: calc(100vh - 60px);
        transition: left 0.3s ease;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 20px 15px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .modal-content {
        max-width: 95vw;
        margin: 10px;
    }
}

/* Dashboard Specific Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-card-blue {
    --gradient-start: #1e3a8a;
    --gradient-end: #0f172a;
    border-left: 3px solid var(--primary-blue);
}

.stat-card-blue .stat-icon {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
}

.stat-card-green {
    --gradient-start: #10b981;
    --gradient-end: #059669;
}

.stat-card-green .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-card-purple {
    --gradient-start: #8b5cf6;
    --gradient-end: #7c3aed;
}

.stat-card-purple .stat-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.stat-card-orange {
    --gradient-start: #fbbf24;
    --gradient-end: #f59e0b;
    border-left: 3px solid var(--accent-yellow);
}

.stat-card-orange .stat-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--primary-navy);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 24px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.stat-trend.positive {
    color: #10b981;
}

.stat-trend.negative {
    color: #ef4444;
}

/* Analytics Section */
.analytics-content {
    padding: 20px 0;
}

.review-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-label {
    font-size: 14px;
    color: #374151;
    min-width: 120px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Progress bar colors for different emergency types */
#floodProgress {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

#accidentProgress {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

#fireProgress {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

#otherProgress {
    background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
}

.review-percentage {
    font-size: 14px;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

.review-icon {
    font-size: 20px;
}

.review-icon i {
    font-size: 20px;
    color: #6b7280;
}

/* Response Teams */
.team-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
}

.team-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
}

.team-details h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.team-details p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .review-label {
        min-width: auto;
    }
    
    .progress-bar {
        width: 100%;
    }
}

/* Map Page Specific Styles */
.operations-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.emergency-list,
.team-list {
    max-height: 300px;
    overflow-y: auto;
}

.emergency-item,
.team-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    transition: all 0.3s ease;
}

.emergency-item:hover,
.team-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.emergency-item.active-emergency {
    border-left: 4px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
}

.emergency-item.active-emergency .emergency-icon {
    animation: pulse 2s infinite;
}

.assigned-info {
    display: block;
    color: #8b5cf6;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

.report-time {
    display: block;
    color: #6b7280;
    font-size: 10px;
    font-weight: 400;
    margin-top: 2px;
}

.emergency-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.emergency-item:hover {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid #3b82f6;
}

.emergency-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-bg);
}

.emergency-details h4,
.team-details h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.emergency-details p,
.team-details p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.summary-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.summary-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Map specific styles */
#map {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

/* Marker Cluster Styles */
.marker-cluster {
    background: rgba(59, 130, 246, 0.8);
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.marker-cluster:hover {
    background: rgba(59, 130, 246, 1);
    transform: scale(1.1);
}

.marker-cluster-small {
    background: rgba(16, 185, 129, 0.8);
}

.marker-cluster-medium {
    background: rgba(245, 158, 11, 0.8);
}

.marker-cluster-large {
    background: rgba(239, 68, 68, 0.8);
}

.marker-cluster div {
    width: 40px;
    height: 40px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 50%;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster span {
    line-height: 40px;
    font-weight: bold;
}

/* Map Controls */
.map-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.map-controls .btn {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.map-controls .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    color: var(--text-primary) !important;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary) !important;
}

.card-header .card-title {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.card-header .card-subtitle {
    color: var(--text-secondary) !important;
    font-weight: 400;
}

/* Specific fixes for map page headers */
.card .card-header:first-child {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: var(--text-primary) !important;
}

.card .card-header:first-child .card-title {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.card .card-header:first-child .card-subtitle {
    color: var(--text-secondary) !important;
    font-weight: 400;
}

/* Map page specific text visibility fixes */
.map-page .card-header {
    color: var(--text-primary) !important;
}

.map-page .card-header * {
    color: inherit !important;
}

.map-page .card-title {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.map-page .card-subtitle {
    color: var(--text-secondary) !important;
    font-weight: 400;
}

/* Ensure all text in cards is visible */
.card {
    color: var(--text-primary);
}

.card .card-title {
    color: var(--text-primary) !important;
}

.card .card-subtitle {
    color: var(--text-secondary) !important;
}

/* Archive Page Specific Styles */
.archived-reports-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 8px;
}

.archived-reports-container::-webkit-scrollbar {
    width: 6px;
}

.archived-reports-container::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 3px;
}

.archived-reports-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.archived-reports-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.archived-report-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.archived-report-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.archived-report-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.report-type {
    flex-shrink: 0;
}

.report-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.report-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.report-actions .btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.report-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.report-details {
    min-width: 0;
}

.report-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-details h4::before {
    content: '👤';
    font-size: 14px;
}

.report-message {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-location {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.report-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Enhanced Badge Styles for Archive */
.badge-fire {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-flood {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border: 1px solid #dbeafe;
}

.badge-accident {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border: 1px solid #fef3c7;
}

.badge-medical {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid #d1fae5;
}

.badge-other {
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    color: #374151;
    border: 1px solid #e5e7eb;
}

/* Priority Badge Enhancements */
.badge-priority-1 {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
    font-weight: 700;
}

.badge-priority-2 {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-weight: 600;
}

.badge-priority-3 {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border: 1px solid #fef3c7;
    font-weight: 600;
}

.badge-priority-4 {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid #d1fae5;
    font-weight: 500;
}

/* Archive Controls Styling */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.text-sm {
    font-size: 14px;
}

.text-muted {
    color: var(--text-secondary);
}

/* Archive Filters */
.archive-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.filter-select:hover {
    border-color: var(--primary-color);
}

/* Loading and Empty States */
.text-center {
    text-align: center;
}

.py-8 {
    padding: 32px 0;
}

.text-4xl {
    font-size: 2.25rem;
}

.mb-4 {
    margin-bottom: 16px;
}

/* Enhanced Loading Spinner */
.loading-spinner-enhanced {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: var(--secondary-color);
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: var(--success-color);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.loading-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.empty-state-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

.empty-state-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.empty-state-action:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Analytics Dashboard Styles */
.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.analytics-card-primary::before {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.analytics-card-success::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.analytics-card-warning::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.analytics-card-info::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.analytics-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    color: white;
}

.analytics-card-primary .analytics-card-icon {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.analytics-card-success .analytics-card-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.analytics-card-warning .analytics-card-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.analytics-card-info .analytics-card-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.analytics-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.analytics-card-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.analytics-card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-card-trend {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Analytics Charts */
.analytics-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Chart Header Images */
.chart-image-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.chart-header-image {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    object-fit: contain;
}

/* Geographic Analysis */
.geographic-analysis {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.location-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.location-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.location-stat-content {
    flex: 1;
}

.location-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.location-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.location-heatmap {
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 40px;
    text-align: center;
}

.heatmap-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.heatmap-placeholder h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.heatmap-placeholder p {
    color: var(--text-secondary);
    margin: 0;
}

/* Performance Metrics */
.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-bar {
    width: 200px;
    height: 8px;
    background: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.metric-percentage {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: right;
}

/* Analytics Actions */
.analytics-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.date-range-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-range-selector label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.date-range-selector select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-range-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Responsive Design for Analytics */
@media (max-width: 1200px) {
    .analytics-charts {
        grid-template-columns: 1fr;
    }
    
    .geographic-analysis {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .analytics-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .analytics-card {
        padding: 20px;
    }
    
    .analytics-card-number {
        font-size: 2rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .location-stats {
        gap: 16px;
    }
    
    .location-stat {
        padding: 12px;
    }
    
    .metric-bar {
        width: 150px;
    }
    
    .analytics-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .analytics-card {
        padding: 16px;
    }
    
    .analytics-card-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .analytics-card-number {
        font-size: 1.75rem;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .metric-bar {
        width: 120px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design for Archive Page */
@media (max-width: 768px) {
    .archived-reports-container {
        max-height: 60vh;
        gap: 12px;
    }
    
    .archived-report-item {
        padding: 16px;
    }
    
    .report-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .report-actions {
        justify-content: flex-end;
    }
    
    .report-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .report-meta {
        min-width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .meta-item {
        flex: 1;
        min-width: 120px;
    }
    
    .report-actions .btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    /* Archive filters responsive */
    .archive-filters {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .flex.justify-between {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .archived-report-item {
        padding: 12px;
    }
    
    .report-actions {
        gap: 6px;
    }
    
    .report-actions .btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-item {
        min-width: auto;
    }
}

.responder-marker {
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.emergency-marker {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.emergency-marker-icon {
    font-size: 16px;
    line-height: 1;
}

/* Status-based marker colors */
.emergency-marker.status-pending {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

.emergency-marker.status-processing {
    background: #3b82f6;
    animation: pulse 2s infinite;
}

.emergency-marker.status-classified {
    background: #f97316;
    animation: pulse 2s infinite;
}

.emergency-marker.status-assigned {
    background: #8b5cf6;
    animation: pulse 2s infinite;
}

.emergency-marker.status-in-progress {
    background: #06b6d4;
    animation: pulse 2s infinite;
}

.emergency-marker.status-completed {
    background: #10b981;
    animation: none;
    opacity: 0.8;
}

.emergency-marker.status-cancelled {
    background: #6b7280;
    animation: none;
    opacity: 0.6;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.map-popup {
    min-width: 250px;
    max-width: 300px;
}

.map-popup h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.map-popup p {
    margin: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-popup .badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.popup-actions .btn {
    flex: 1;
    min-width: 80px;
    font-size: 12px;
    padding: 6px 12px;
}

/* Enhanced popup styling */
.leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.4;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-tip {
    background: white;
    border: 1px solid var(--border-color);
}

/* Map Legend Styles */
.map-legend {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
}

.map-legend h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.map-legend h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.legend-section {
    margin-bottom: 16px;
}

.legend-section:last-child {
    margin-bottom: 0;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.legend-marker.status-pending {
    background: #f59e0b;
}

.legend-marker.status-processing {
    background: #3b82f6;
}

.legend-marker.status-classified {
    background: #f97316;
}

.legend-marker.status-assigned {
    background: #8b5cf6;
}

.legend-marker.status-in-progress {
    background: #06b6d4;
}

.legend-marker.status-completed {
    background: #10b981;
}

.legend-marker.status-cancelled {
    background: #6b7280;
}

.legend-marker.responder-marker {
    background: #3b82f6;
}

.legend-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.legend-item span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive legend */
@media (max-width: 768px) {
    .legend-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-legend {
        padding: 12px;
    }
    
    .map-legend h4 {
        font-size: 14px;
    }
    
    .map-legend h5 {
        font-size: 12px;
    }
}

/* Responsive Design for Map */
@media (max-width: 768px) {
    .operations-panel {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .emergency-item,
    .team-item {
        padding: 8px;
    }
    
    .emergency-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .btn,
    .pagination-container {
        display: none !important;
    }
    
    .main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* View and Edit Page Styles */
.view-page .main-content,
.edit-page .main-content {
    padding: 20px;
    transform: none !important;
    position: relative !important;
}

.view-page,
.edit-page {
    transform: none !important;
    position: relative !important;
}

.view-page *,
.edit-page * {
    transform: none !important;
}

.report-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.report-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.report-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Report Details Grid */
.report-details-grid {
    display: grid;
    gap: 24px;
    transform: none !important;
    position: relative !important;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.detail-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transform: none !important;
    position: relative !important;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.detail-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Badge Styles */
.emergency-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emergency-type-badge.fire {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.emergency-type-badge.flood {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.emergency-type-badge.accident {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.emergency-type-badge.medical {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.emergency-type-badge.other {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-badge.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.status-badge.status-classified {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-badge.status-assigned {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.status-badge.status-in-progress {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

.status-badge.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge.status-cancelled {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.priority-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-badge.priority-1 {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.priority-badge.priority-2 {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.priority-badge.priority-3 {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.priority-badge.priority-4 {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.severity-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-badge.severity-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.severity-badge.severity-high {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.severity-badge.severity-medium {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.severity-badge.severity-low {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

/* Edit Form Styles */
.edit-form {
    max-width: 100%;
    transform: none !important;
    position: relative !important;
    width: 100%;
    overflow: visible;
}

.form-grid {
    display: grid;
    gap: 24px;
}

.form-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transform: none !important;
    position: relative !important;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.form-section-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-color {
    width: 50px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form-actions .btn {
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.modal-overlay {
    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: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sidebar Footer and Logout Button Styles */
.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
}

.user-details h4 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.user-details p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.logout-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logout-btn:hover {
  background: #EF4444 !important;
  border-color: #EF4444 !important;
  color: white !important;
}

.logout-btn:active {
  transform: translateY(0);
}

.logout-btn i {
  font-size: 1rem;
}

.logout-btn:hover i {
  color: white !important;
}

/* Weather Metric Card Styles */
.weather-metric-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.weather-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.weather-metric-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.weather-metric-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.weather-metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.weather-metric-status {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
}

/* Mobile: prevent horizontal scroll on narrow viewports (320px–400px) */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  body {
    min-width: 0;
  }
  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  .dashboard-container {
    min-width: 0;
    overflow-x: hidden;
  }
  .main-content {
    min-width: 0;
    overflow-x: hidden;
  }
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Admin page header (banner) — same design on all admin sidebar pages ── */
.admin-page-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e293b 100%);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
}
.admin-page-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(59,130,246,0.12);
  border-radius: 50%;
}
.admin-page-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: 80px;
  width: 100px;
  height: 100px;
  background: rgba(59,130,246,0.07);
  border-radius: 50%;
}
.admin-page-header > div:first-child {
  position: relative;
  z-index: 1;
}
.admin-page-header h1,
.admin-page-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: -0.02em;
}
.admin-page-header h1 i,
.admin-page-header h2 i {
  color: #93c5fd;
  font-size: 1.5rem;
}
.admin-page-header p {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}
.admin-page-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.admin-page-header .admin-page-badge {
  background: rgba(59,130,246,0.25);
  border: 1px solid rgba(147,197,253,0.5);
  color: #93c5fd;
  border-radius: 9999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.admin-header-time {
  text-align: right;
}
.admin-header-time .time-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
}
.admin-header-time .time-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}
