.sa-flag-gradient {
  background: linear-gradient(45deg, #007749 0%, #FFB612 25%, #DE3831 50%, #002395 75%, #000000 100%);
}

.map-container {
  height: 300px;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.report-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-in-progress {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-resolved {
  background-color: #d1fae5;
  color: #065f46;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
  /* Ensure body doesn't overflow */
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Make navigation mobile-friendly */
  nav .container {
    padding: 1rem;
  }

  nav .space-x-4 {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  nav button {
    font-size: 0.875rem;
    padding: 0.5rem;
  }

  /* Mobile page padding */
  .page {
    padding: 1rem !important;
  }

  /* Welcome section on mobile */
  #home-page h1 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  #home-page p {
    font-size: 1rem !important;
  }

  /* Announcements section */
  .bg-gradient-to-r {
    padding: 1rem !important;
  }

  /* Grid items stack on mobile */
  .grid {
    grid-template-columns: 1fr !important;
  }

  /* Forms on mobile */
  #report-form input,
  #report-form select,
  #report-form textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }

  /* Map on mobile */
  #map {
    height: 250px !important;
    min-height: 250px !important;
  }

  /* Filter section on mobile */
  .flex-col.md\:flex-row {
    flex-direction: column !important;
  }

  /* Footer on mobile */
  footer .flex.flex-col.md\:flex-row {
    flex-direction: column !important;
  }

  footer .flex-1 {
    width: 100%;
    margin-bottom: 2rem;
  }

  /* Social media icons */
  footer .flex.gap-4 {
    justify-content: center;
  }

  /* Buttons full width on mobile */
  button[onclick*="showPage"] {
    width: 100%;
    max-width: 100%;
  }

  /* Status cards on mobile */
  .report-card {
    padding: 1rem !important;
  }

  .report-card .flex {
    flex-direction: column !important;
  }

  .report-card .flex-1 {
    width: 100%;
  }

  /* Stats display */
  .flex.space-x-4 {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Modal on mobile */
  #modal .bg-white {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  /* Search box on mobile */
  #search-reference {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  nav .container {
    padding: 1.5rem;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal scrolling */
html, body {
  overflow-x: hidden;
  width: 100%;
}