*, *::before, *::after {
  -webkit-tap-highlight-color: transparent !important;
}

/* Interactive Active State (Tap Effect) */
button, .btn-lapor, .page-btn, .close-btn, .select-trigger, .checkbox-row, #btnScanQR {
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation;
}

.close-btn:active {
  transform: scale(0.9) !important;
  background-color: #cbd5e1 !important;
  transition: transform 0.1s ease, background-color 0.1s ease !important;
}

#detailModal .close-btn:active,
#qrModal .close-btn:active {
  background-color: #cbd5e1 !important;
  transform: scale(0.9) !important;
}

#btnScanQR:active {
  transform: scale(0.92) !important;
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  transition: transform 0.1s ease !important;
}

.btn-lapor:active, 
#formModal button[type="submit"]:active, 
#loginModal .modal-body button:active,
.btn-hapus:active {
  transform: scale(0.97) translateY(0) !important;
  filter: brightness(0.92) !important;
  transition: transform 0.1s ease, filter 0.1s ease !important;
}

.select-trigger:active {
  background-color: #f8fafc !important;
  border-color: #94a3b8 !important;
}

.checkbox-row:active {
  transform: scale(0.985) !important;
  background-color: #eff6ff !important;
  transition: transform 0.1s ease, background-color 0.1s ease !important;
}

.page-btn:active {
  transform: scale(0.92) !important;
  background-color: #e2e8f0 !important;
  transition: transform 0.1s ease !important;
}

:root {
      /* Palet Warna Modern */
      --primary: #0f172a;
      --secondary: #2563eb;
      --menunggu: #ef4444;
      --ditangani: #10b981;
      
      /* Variabel Shadow Lembut */
      --soft-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
      --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    }
    
    body {
      font-family: 'Poppins', sans-serif;
      /* Background full layar dengan gradien transisi dari gelap ke terang */
      background: linear-gradient(180deg, rgba(15, 15, 15, 0.65) 0%, rgba(15, 15, 15, 0.65) 60%, rgba(248, 250, 252, 1) 90%), url('../../background.jpg');
      background-attachment: fixed;
      background-size: cover;
      background-position: center top;
      background-repeat: no-repeat;
      
      margin: 0;
      padding: 0;
      color: #334155;
      min-height: 100vh;
    }

    /* =========================================
       0. LICENSE OVERLAY
       ========================================= */
    .license-overlay {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(15, 23, 42, 0.95); z-index: 999999; display: flex;
      flex-direction: column; justify-content: center; align-items: center;
      text-align: center; visibility: hidden; opacity: 0; transition: opacity 0.5s ease;
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    }
    .license-overlay.show { visibility: visible; opacity: 1; }
    .license-title { font-size: 3.5rem; font-weight: 800; color: #ef4444; margin-bottom: 15px; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); }
    .license-msg { font-size: 1.2rem; color: #cbd5e1; max-width: 600px; line-height: 1.6; padding: 0 20px; font-weight: 500; }

    /* =========================================
       1. HERO SECTION (ATAS) - DISEJAJARKAN & DISEIMBANGKAN
       ========================================= */
    .hero-wrapper {
      background: transparent;
      display: flex; flex-direction: column; width: 100%;
      position: relative;
    }
    
    .top-brand {
      display: flex; align-items: center; gap: 15px;
      padding: 13px 30px;
      position: absolute; top: 0; left: 0; right: 0; z-index: 20;
      max-width: 1560px;
      margin: 0 auto;
      box-sizing: border-box;
    }
    .top-brand img { 
      height: 48px; object-fit: contain; cursor: pointer; 
    }
    .top-brand-text {
      display: flex; flex-direction: column; text-align: left; color: #ffffff;
    }
    .top-brand-title {
      font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: 1px;
    }
    .top-brand-subtitle {
      font-size: 12px; font-weight: 600; letter-spacing: 1.2px; opacity: 0.9;
    }

    .hero-content { 
      width: 100%;
      max-width: 1560px; 
      margin: 0 auto;
      padding: 160px 30px 80px 30px; 
      color: white; text-align: left; display: flex; flex-direction: column; 
      align-items: flex-start;
      box-sizing: border-box;
    }
    .hero-title { 
      font-size: 45px; font-weight: 800; letter-spacing: 0.5px; margin: 0; 
      text-shadow: 0 4px 10px rgba(0,0,0,0.3); line-height: 1.1;
    }
    .hero-subtitle { 
      font-size: 18px; font-weight: 400; opacity: 0.95; margin-top: 10px; 
      line-height: 1.6; text-shadow: 0 2px 5px rgba(0,0,0,0.3);
      max-width: 800px;
    }
    
    .admin-controls { display: flex; justify-content: flex-start; gap: 10px; margin-top: 25px; }
    .admin-btn { background-color: rgba(255, 255, 255, 0.15); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.3); padding: 10px 24px; border-radius: 20px; font-size: 0.9em; font-weight: 600; cursor: pointer; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); transition: all 0.3s ease; }
    .admin-btn:hover { background-color: rgba(255, 255, 255, 0.25); border-color: #ffffff; }
    .admin-btn-logout { background-color: rgba(239, 68, 68, 0.2); border-color: #ef4444; }
    .admin-btn-logout:hover { background-color: rgba(239, 68, 68, 0.4); border-color: #f87171; }

    /* =========================================
       2. WADAH UTAMA (BLOK PUTIH)
       ========================================= */
    .main-content { padding: 0 30px 60px 30px; position: relative; z-index: 10; }
    
    .container { 
      max-width: 1500px;
      margin: 0 auto; 
      background: #ffffff; 
      border-radius: 16px; 
      box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
      padding: 40px; 
      box-sizing: border-box;
    }
    
    .header-section {
      display: flex; justify-content: space-between; align-items: center;
      padding-bottom: 24px; border-bottom: 1px solid #e2e8f0; margin-bottom: 24px;
    }
    .header-text h2 { margin: 0 0 6px 0; color: #0f172a; font-size: 24px; font-weight: 700; }
    .header-text p { margin: 0; color: #64748b; font-size: 15px; }
    
    .btn-lapor {
      background-color: var(--secondary); color: white; padding: 14px 28px; 
      border: none; border-radius: 10px; font-weight: 700; font-size: 1em;
      cursor: pointer; display: flex; align-items: center; gap: 8px;
      transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    }
    .btn-lapor:hover { background-color: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3); }

    .filter-bar {
      display: flex; gap: 16px; margin-bottom: 24px; align-items: stretch;
    }
    .search-box {
      flex: 1; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 10px;
      display: flex; align-items: center; padding: 0 16px; transition: border-color 0.2s;
    }
    .search-box:focus-within { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1); }
    .search-box svg { color: #94a3b8; width: 18px; height: 18px; margin-right: 12px; flex-shrink: 0; }
    .search-box input {
      border: none; outline: none; background: transparent; width: 100%;
      padding: 14px 0; font-size: 0.95em; color: #1e293b; font-family: inherit;
    }
    
    .filter-dropdown-box { width: 220px; flex-shrink: 0; }
    
    .custom-select { position: relative; width: 100%; user-select: none; height: 100%; }
    .select-trigger { 
      cursor: pointer; display: flex; justify-content: space-between; align-items: center; 
      background: #ffffff; border: 1px solid #cbd5e1; border-radius: 10px;
      padding: 0 16px; height: 100%; box-sizing: border-box; transition: all 0.2s;
    }
    .select-trigger span:first-child { color: #475569; font-size: 0.95em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
    .custom-select.open .select-trigger { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1); }
    
    .arrow {
      border: solid #64748b; border-width: 0 2px 2px 0; display: inline-block;
      padding: 4px; transform: rotate(45deg); transition: transform 0.3s;
    }
    .custom-select.open .arrow { transform: rotate(-135deg); border-color: var(--secondary); margin-top: 4px;}

    .select-options {
      position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: white;
      border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 0; list-style: none;
      z-index: 50; max-height: 250px; overflow-y: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
      opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s; margin: 0;
    }
    .select-options.show { opacity: 1; visibility: visible; transform: translateY(0); }
    .select-options li { padding: 10px 16px; cursor: pointer; color: #334155; font-size: 0.9em; font-weight: 500; transition: background 0.2s; }
    .select-options li:hover { background: #f1f5f9; color: var(--secondary); }

    /* =========================================
       3. KARTU DAFTAR PENGADUAN
       ========================================= */
    .card-list { display: flex; flex-direction: column; gap: 16px; }
    .card {
      background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px;
      padding: 24px; transition: all 0.2s ease; cursor: pointer; 
      box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
    .card:hover { box-shadow: var(--hover-shadow); transform: translateY(-2px); border-color: #93c5fd; }
    
    .card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
    
    .avatar-wrapper { display: flex; align-items: center; gap: 12px; }
    .avatar {
      width: 40px; height: 40px; 
      border-radius: 10px;
      background-color: #eff6ff; 
      color: #2563eb; font-weight: 700; font-size: 1.1em; display: flex; 
      justify-content: center; align-items: center; flex-shrink: 0;
    }
    .card-header-info { display: flex; flex-direction: column; gap: 4px; }
    .pelapor-name { font-weight: 700; color: #0f172a; font-size: 1.05em; }
    .card-meta { font-size: 0.85em; color: #94a3b8; font-weight: 500; }
    
    .status-badge {
      display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
      border-radius: 8px; font-size: 0.85em; font-weight: 700; border: 1px solid transparent;
    }
    .status-badge::before {
      content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    }
    .status-menunggu { background-color: #fef2f2; color: #ef4444; border-color: #fee2e2; }
    .status-menunggu::before { background-color: #ef4444; }
    .status-ditangani { background-color: #ecfdf5; color: #10b981; border-color: #d1fae5; }
    .status-ditangani::before { background-color: #10b981; }

    .card-content {
      margin-left: 0; 
      border-left: 3px solid #e2e8f0; 
      padding-left: 16px; 
      color: #475569; font-size: 0.95em; line-height: 1.6;
    }
    .card-content p { margin: 0 0 6px 0; }
    .card-content p:last-child { margin-bottom: 0; }

    .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
    .page-btn { padding: 8px 14px; border: 1px solid #cbd5e1; background: white; cursor: pointer; border-radius: 8px; font-size: 0.9em; font-weight: 500; color: #475569; transition: all 0.2s; }
    .page-btn:hover:not(:disabled) { background: #f8fafc; color: var(--primary); border-color: #94a3b8; }
    .page-btn.active { background: var(--secondary); color: white; border-color: var(--secondary); }
    .page-btn:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; border-color: #e2e8f0;}

    /* =========================================
       4. MODAL & LAINNYA
       ========================================= */
    .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); z-index: 100; display: flex; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; visibility: hidden; opacity: 0; transition: all 0.3s ease; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
    .modal-content { background: #ffffff; width: 100%; max-width: 650px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; transform: scale(0.95) translateY(20px); opacity: 0; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
    .modal-overlay.show { visibility: visible; opacity: 1; }
    .modal-overlay.show .modal-content { transform: scale(1) translateY(0); opacity: 1; }
    
    .modal-header { background: #ffffff; color: #0f172a; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0;}
    .modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: #0f172a; }
    .close-btn { background: #f1f5f9; border: none; color: #0f172a; font-size: 24px; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
    .close-btn:hover { background: #e2e8f0; }
    
    .modal-body { padding: 24px; overflow-y: auto; background: #ffffff; }
    
    .detail-section { margin-bottom: 24px; }
    .detail-title { font-weight: 700; color: var(--primary); font-size: 1.05em; margin-bottom: 16px; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; }
    .detail-row { display: flex; margin-bottom: 10px; font-size: 0.95em; align-items: flex-start; }
    .detail-label { width: 140px; color: #64748b; font-weight: 600; flex-shrink: 0; }
    .detail-val { flex: 1; color: #1e293b; font-weight: 500;}
    
    .img-preview { width: 100%; max-height: 250px; object-fit: contain; border-radius: 8px; background: #f1f5f9; margin-top: 12px; border: 1px solid #e2e8f0;}
    .zoomable { cursor: pointer; transition: opacity 0.2s; }
    .zoomable:hover { opacity: 0.85; }
    
    #loadingIndicator { text-align: center; padding: 40px; color: #64748b; font-weight: 500; font-style: italic; }

    #formModal label, #loginModal label { display: block; margin-top: 18px; margin-bottom: 8px; font-weight: 600; color: #334155; font-size: 0.9em; }
    #formModal input[type="text"], #formModal input[type="tel"], #formModal input[type="file"], #formModal textarea, #loginModal input[type="password"] { width: 100%; padding: 10px 14px; box-sizing: border-box; font-size: 0.95em; border: 1px solid #cbd5e1; border-radius: 10px; background-color: #ffffff; transition: all 0.2s ease; color: #1e293b; outline:none; font-family: inherit; }
    #formModal input:focus, #formModal textarea:focus, #loginModal input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
    #formModal textarea { resize: vertical; min-height: 80px; }
    
    #formModal .select-trigger { border: 1px solid #cbd5e1; background-color: #ffffff; color: #1e293b; height: auto; padding: 10px 14px; margin-top: 0; }
    #formModal .custom-select.open .select-trigger { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
    
    #formModal button[type="submit"], #loginModal .modal-body button { width: auto; min-width: 120px; padding: 12px 24px; font-size: 0.95em; font-weight: 600; background-color: var(--secondary); color: white; border: none; border-radius: 8px; cursor: pointer; margin-top: 24px; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
    #formModal button[type="submit"]:hover, #loginModal .modal-body button:hover { background-color: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37, 99, 235, 0.2); }
    #formModal button[type="submit"]:disabled { background-color: #94a3b8; box-shadow: none; cursor: not-allowed; transform: none; }
    .btn-hapus { background-color: var(--menunggu); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
    .btn-hapus:hover { background-color: #b91c1c; transform: translateY(-2px); }
    
    .checkbox-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 8px 0;
      padding: 10px 14px;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      background-color: #f8fafc;
      transition: all 0.2s ease;
      cursor: pointer;
    }
    .checkbox-row:hover {
      background-color: #eff6ff;
      border-color: #93c5fd;
    }
    .checkbox-row input[type="checkbox"] {
      margin: 0 !important;
      width: 18px !important;
      height: 18px !important;
      cursor: pointer;
      accent-color: var(--secondary);
      flex-shrink: 0;
    }
    #formModal .checkbox-row label,
    .checkbox-row label,
    .checkbox-row span {
      display: inline-block !important;
      margin: 0 !important;
      padding: 0 !important;
      font-weight: 500 !important;
      color: #334155 !important;
      font-size: 0.95em !important;
      cursor: pointer !important;
      flex: 1;
      line-height: 1.4 !important;
      user-select: none;
    }
    
    /* Form Validation Styles (Disamakan Persis dengan Model Simpell PWA) */
    .input-error {
      border-color: #ef4444 !important;
      box-shadow: 0 0 0 1px #ef4444 !important;
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e") !important;
      background-repeat: no-repeat !important;
      background-position: right 1rem center !important;
      background-size: 1.25rem 1.25rem !important;
    }

    input.input-error, textarea.input-error {
      padding-right: 2.75rem !important;
    }
    
    .select-trigger.input-error {
      border-color: #ef4444 !important;
      box-shadow: 0 0 0 1px #ef4444 !important;
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e") !important;
      background-repeat: no-repeat !important;
      background-position: right 2.4rem center !important;
      background-size: 1.15rem 1.15rem !important;
      padding-right: 14px !important;
    }
    .select-trigger.input-error span:first-child {
      margin-right: 2.8rem !important;
    }

    #kondisi_group.input-error {
      border: 1.5px dashed #ef4444 !important;
      border-radius: 12px !important;
      padding: 8px 10px !important;
      background-color: #fef2f2 !important;
      box-shadow: none !important;
      background-image: none !important;
    }
    .error-message { color: var(--menunggu); font-size: 0.82em; margin-top: 5px; font-weight: 600; display: none; }
    .hidden { display: none; }
    .text-red { color: var(--menunggu); font-size: 0.85em; margin-top: 8px; font-style: italic; font-weight: 500;}
    #loadingForm, #successForm { text-align: center; margin-top: 20px; font-size: 0.95em; font-weight: 600; }
    #successForm { display: none; color: #065f46; background-color: #d1fae5; border: 1px solid #a7f3d0; padding: 16px; border-radius: 8px; }
    
    .spinner { border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid white; border-radius: 50%; width: 16px; height: 16px; animation: spin 0.8s linear infinite; }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

    .lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); z-index: 9999; display: flex; justify-content: center; align-items: center; visibility: hidden; opacity: 0; transition: visibility 0.3s, opacity 0.3s ease; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
    .lightbox-overlay.show { visibility: visible; opacity: 1; }
    .lightbox-img { max-width: 90%; max-height: 90vh; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.4); object-fit: contain; transform-origin: center center; cursor: pointer; transition: transform 0.15s ease-out; }
    .lightbox-img.is-dragging { transition: none !important; }

    /* Gaya Spesifik Tombol Pemindai QR */
    #btnScanQR {
      display: none; /* diaktifkan melalui JS */
      justify-content: center;
      align-items: center;
      width: 44px; /* Lebar tombol sejajar proporsional */
      flex-shrink: 0;
      background-color: #ffffff; 
      color: #475569; 
      border: 1px solid #cbd5e1; 
      border-radius: 8px; 
      cursor: pointer;
      transition: all 0.2s ease;
      padding: 0;
    }
    #btnScanQR:hover { border-color: var(--secondary); color: var(--secondary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
    
    /* =========================================
       6. KUSTOMISASI CSS PEMINDAI QR CODE
       ========================================= */
    #reader { border: none !important; background: #000; border-radius: 12px; overflow: hidden; }
    #reader video { object-fit: cover !important; width: 100% !important; border-radius: 12px; display: block; }
    
    /* Memaksa penyembunyian antarmuka dashboard bawaan library */
    #reader__dashboard_section_csr span,
    #reader__dashboard_section_csr select,
    #reader__dashboard_section_swaplink,
    #reader__action_panel,
    #reader__dashboard_section_csr button,
    #reader img,
    #reader a { display: none !important; }
    #reader__dashboard_section_csr { padding: 0 !important; margin: 0 !important; border: none !important; }
    #reader__header_message { display: none !important; }
    #reader__dashboard_section_fs { display: none !important; }

    /* =========================================
       7. RESPONSIVE DESIGN (KHUSUS PWA / MOBILE)
       ========================================= */

    /* Pastikan pemindai QR selalu di atas formModal (z-index > 1000) */
    #qrModal {
      z-index: 2500 !important;
    }
    @media (max-width: 768px) {
      body {
        background: linear-gradient(180deg, rgba(15, 15, 15, 0.65) 0%, rgba(15, 15, 15, 0.65) 60%, #ffffff 90%), url('../../background.jpg') !important;
        background-color: #ffffff !important;
      }

      .top-brand { padding: 12px 16px; }
      .top-brand img { height: 40px; }
      .top-brand-title { font-size: 16px; }
      .top-brand-subtitle { font-size: 9px; }
      
      .hero-content { padding: 72px 16px 18px 16px !important; max-width: 100%; }
      .hero-title { font-size: 32px; }
      .hero-subtitle { font-size: 14px; margin-top: 8px; }
      .admin-controls { flex-wrap: wrap; justify-content: flex-start; }
      
      .main-content { 
        padding: 0 !important; 
        margin: 0 !important; 
        background: #ffffff !important; 
        border-top-left-radius: 24px !important; 
        border-top-right-radius: 24px !important; 
        box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.12) !important; 
      }
      .container { 
        padding: 24px 18px 24px 18px !important; 
        border-radius: 24px 24px 0 0 !important; 
        box-shadow: none !important; 
        width: 100% !important; 
        box-sizing: border-box !important; 
      }
      .pagination:empty {
        display: none !important;
        margin: 0 !important;
      }
      
      .header-section { flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
      .btn-lapor { width: 100%; justify-content: center; }
      
      .filter-bar { flex-direction: column; gap: 12px; }
      .filter-dropdown-box { width: 100%; }
      .select-trigger { padding: 12px 16px; }
      
      .card-top { flex-direction: column; gap: 12px; align-items: flex-start; }
      .card-content { margin-left: 0; border-left: none; padding-left: 0; border-top: 1px solid #e2e8f0; padding-top: 12px; margin-top: 12px; }
      
      .detail-row { flex-direction: column; }
      .detail-label { width: 100%; margin-bottom: 4px; }
      #formModal button[type="submit"], #loginModal .modal-body button { width: 100%; }
      .pagination { flex-wrap: wrap; gap: 6px; }
      
      .modal-overlay { padding: 5px; }
      .modal-content { max-height: 80vh; }
      .modal-header { padding: 12px 16px; }
      .modal-body { padding: 16px; }

      /* Form Pengaduan Full-Page KHUSUS Mobile / PWA */
      #formModal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #f8fafc !important;
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: translateY(16px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
      }
      #formModal.show {
        transform: translateY(0) !important;
      }
      #formModal .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
        background: #f8fafc !important;
        display: flex !important;
        flex-direction: column !important;
      }
      #formModal .modal-header {
        background: #0f172a !important;
        color: #ffffff !important;
        padding: 14px 18px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-radius: 0 !important;
        flex-shrink: 0 !important;
      }
      #formModal .modal-header h3 {
        margin: 0 !important;
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        text-align: left !important;
      }
      #formModal .close-btn {
        background: rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        font-size: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
      }
      #formModal .close-btn:hover {
        background: rgba(239, 68, 68, 0.3) !important;
        color: #fca5a5 !important;
      }
      #formModal .close-btn:active {
        background: rgba(255, 255, 255, 0.28) !important;
        transform: scale(0.88) !important;
        transition: transform 0.1s ease, background 0.1s ease !important;
      }
      #formModal .modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 16px 14px 20px 14px !important;
        background: #ffffff !important;
      }
    }