/* view_reports.css */
    :root {
      --primary: #FF6B35;
      --secondary: #004E89;
      --accent: #FFD166;
      --light: rgba(255, 255, 255, 0.9);
      --dark: #1A1A1D;
      --transition: all 0.3s ease;
      --success: #28a745;
      --warning: #ffc107;
      --danger: #dc3545;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      color: var(--light);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }

    .background-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url("images/background-PARMISA.jpg") no-repeat center center;
      background-size: cover;
      z-index: -2;
    }

    .background-container::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.7);
      z-index: -1;
    }

    .navbar {
      padding: 1rem 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 10;
      position: relative;
      flex-wrap: wrap;
    }

    .navbar-brand {
      font-family: 'Montserrat', sans-serif;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--light);
      text-decoration: none;
      letter-spacing: 1px;
    }

    .navbar-brand span {
      color: var(--primary);
    }

    .nav-links {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
    }

    nav a {
      color: var(--light);
      text-decoration: none;
      font-weight: 500;
      font-size: 0.9rem;
      padding: 0.5rem 0.8rem;
      border-radius: 6px;
      transition: var(--transition);
      white-space: nowrap;
    }

    nav a:hover {
      color: var(--primary);
      background: rgba(255, 107, 53, 0.1);
    }

    .main-container {
      flex: 1;
      padding: 1rem;
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
    }

    .page-header {
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(10px);
      padding: 1.5rem;
      border-radius: 12px;
      margin-bottom: 1.5rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
      text-align: center;
    }

    .page-header h1 {
      font-size: 2rem;
      color: var(--accent);
      margin-bottom: 0.5rem;
    }

    .page-header p {
      color: rgba(255, 255, 255, 0.8);
      font-size: 1rem;
    }

    .filters {
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(10px);
      padding: 1.5rem;
      border-radius: 12px;
      margin-bottom: 1.5rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      align-items: flex-end;
    }

    .filter-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      flex: 1;
      min-width: 140px;
    }

    .filter-group label {
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--light);
    }

    select, input[type="text"] {
      padding: 0.7rem;
      border: none;
      border-radius: 6px;
      background: rgba(255,255,255,0.9);
      color: var(--dark);
      font-size: 0.9rem;
      width: 100%;
    }

    .btn {
      padding: 0.7rem 1.2rem;
      background: var(--primary);
      color: #fff;
      border-radius: 6px;
      border: none;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      text-decoration: none;
      display: inline-block;
      text-align: center;
      font-size: 0.9rem;
      white-space: nowrap;
    }

    .btn:hover {
      background: #e05c28;
      transform: translateY(-1px);
    }

    .btn-secondary {
      background: var(--secondary);
    }

    .btn-secondary:hover {
      background: #003d6b;
    }

    .reports-grid {
      display: grid;
      gap: 1.5rem;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .report-card {
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(10px);
      border-radius: 12px;
      padding: 1.5rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
      transition: var(--transition);
    }

    .report-card:hover {
      transform: translateY(-3px);
      background: rgba(255, 255, 255, 0.2);
    }

    .report-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .report-type {
      background: var(--primary);
      color: white;
      padding: 0.4rem 0.8rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: capitalize;
      white-space: nowrap;
    }

    .report-status {
      padding: 0.4rem 0.8rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: capitalize;
      white-space: nowrap;
    }

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

    .status-in-progress {
      background: #17a2b8;
      color: white;
    }

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

    .status-rejected {
      background: #dc3545;
      color: white;
    }

    .report-description {
      color: var(--light);
      margin-bottom: 1rem;
      line-height: 1.5;
      font-size: 0.95rem;
    }

    .report-meta {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.85rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .report-location {
      color: var(--accent);
      font-size: 0.85rem;
      margin-bottom: 1rem;
      word-break: break-word;
    }

    .report-image {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-radius: 8px;
      margin-bottom: 1rem;
    }

    .loading {
      text-align: center;
      padding: 3rem 1rem;
      color: var(--light);
    }

    .no-reports {
      text-align: center;
      padding: 2rem 1rem;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(10px);
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .no-reports h3 {
      color: var(--accent);
      margin-bottom: 1rem;
      font-size: 1.3rem;
    }

    .no-reports p {
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: 1.5rem;
      font-size: 0.95rem;
    }

    .stats-summary {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .stat-card {
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(10px);
      padding: 1.2rem;
      border-radius: 12px;
      text-align: center;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .stat-number {
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 0.5rem;
    }

    .stat-label {
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.85rem;
    }

    footer {
      text-align: center;
      padding: 1rem;
      font-size: 0.8rem;
      opacity: 0.6;
      color: #fff;
    }

    .debug-info {
      background: rgba(255, 0, 0, 0.2);
      padding: 1rem;
      border-radius: 8px;
      margin-bottom: 1rem;
      font-family: monospace;
      font-size: 0.8rem;
      white-space: pre-wrap;
      overflow-x: auto;
    }

    /* Mobile-first responsive design */
    @media (max-width: 480px) {
      .navbar {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
      }

      .navbar-brand {
        font-size: 1.3rem;
        text-align: center;
      }

      .nav-links {
        justify-content: center;
        gap: 0.5rem;
      }

      nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
      }

      .main-container {
        padding: 0.8rem;
      }

      .page-header {
        padding: 1.2rem;
      }

      .page-header h1 {
        font-size: 1.6rem;
      }

      .page-header p {
        font-size: 0.9rem;
      }

      .filters {
        padding: 1.2rem;
      }

      .filter-group {
        min-width: 100%;
        margin-bottom: 0.5rem;
      }

      .reports-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
      }

      .report-card {
        padding: 1.2rem;
      }

      .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
      }

      .report-type,
      .report-status {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
      }

      .report-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
      }

      .stats-summary {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
      }

      .stat-card {
        padding: 1rem;
      }

      .stat-number {
        font-size: 1.5rem;
      }

      .stat-label {
        font-size: 0.8rem;
      }
    }

    @media (min-width: 481px) and (max-width: 768px) {
      .navbar {
        padding: 1rem 1.5rem;
      }

      .navbar-brand {
        font-size: 1.4rem;
      }

      .nav-links {
        gap: 0.8rem;
      }

      .main-container {
        padding: 1rem;
      }

      .page-header h1 {
        font-size: 1.8rem;
      }

      .filters {
        gap: 1rem;
      }

      .filter-group {
        flex: 1;
        min-width: 140px;
      }

      .reports-grid {
        grid-template-columns: 1fr;
      }

      .stats-summary {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
      .reports-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .stats-summary {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    /* Touch-friendly improvements */
    @media (hover: none) and (pointer: coarse) {
      .btn {
        padding: 0.8rem 1.3rem;
        font-size: 0.95rem;
      }

      nav a {
        padding: 0.6rem 0.9rem;
      }

      select, input[type="text"] {
        padding: 0.8rem;
        font-size: 16px; /* Prevents zoom on iOS */
      }

      .report-card:hover {
        transform: none;
      }

      .btn:hover {
        transform: none;
      }
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
      .background-container::after {
        background: rgba(0,0,0,0.85);
      }

      .report-card,
      .filters,
      .page-header,
      .stat-card {
        border: 2px solid rgba(255, 255, 255, 0.4);
      }
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }

      .report-card:hover,
      .btn:hover {
        transform: none;
      }
    }
