/* Native System Font Stack cho tốc độ và độ sắc nét tối đa */

:root {
  --primary: #0E5E6F;       /* Brand Dark Blue */
  --primary-glow: rgba(14, 94, 111, 0.3);
  --accent: #2FB8AC;        /* Brand Turquoise */
  --accent-glow: rgba(47, 184, 172, 0.4);
  
  /* Very light blue gradient for a premium feel */
  --bg-gradient: linear-gradient(135deg, #F4F9FA 0%, #E6F3F5 100%);
  
  --surface: rgba(255, 255, 255, 0.85);
  --surface-solid: #FFFFFF;
  --glass-border: 1px solid rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 10px 40px rgba(14, 94, 111, 0.05);

  --text-main: #1E293B;
  --text-muted: #64748B;
  
  --danger: #EF4444;
  --success: #10B981;
  --warning: #F59E0B;
  
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 15px; /* Kích thước chữ nền chuẩn giống FB/Apple */
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: #1c1e21; /* Màu chữ chuẩn dễ nhìn hơn, không quá đen */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background pattern to add texture */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--accent) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, .brand strong {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: normal;
}

h1 { font-size: 2.2rem; color: var(--primary); }
h2 { font-size: 1.6rem; margin-bottom: 1.2rem; color: var(--primary); }
h3 { font-size: 1.15rem; font-weight: 600; color: var(--primary); }

.hidden { display: none !important; }

/* Shell Layout */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Glassmorphism Sidebar */
.sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  z-index: 10;
  box-shadow: 4px 0 24px rgba(14, 94, 111, 0.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(14, 94, 111, 0.15);
}

.brand div {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--primary);
}

.brand span {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Sidebar Nav (Segmented look) */
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav button {
  text-align: left;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Nunito', sans-serif;
  position: relative;
}

.nav button:hover {
  background: rgba(14, 94, 111, 0.04);
  color: var(--primary);
  padding-left: 24px;
}

.nav button.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.user-panel {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(14, 94, 111, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#currentUser {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

/* Main Content Area */
.main {
  flex: 1;
  overflow-y: auto;
  position: relative;
  /* Custom scrollbar for main area */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.main::-webkit-scrollbar {
  width: 6px;
}
.main::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 10px;
}

/* Login View */
.login-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 100;
  overflow: hidden;
}

/* Subtle background glowing orbs for login */
.login-view::before, .login-view::after {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.12;
  filter: blur(80px);
  z-index: -1;
  animation: float 15s infinite ease-in-out alternate;
}

.login-view::before { top: -10%; left: -10%; }
.login-view::after { bottom: -10%; right: -10%; background: radial-gradient(circle, var(--primary) 0%, transparent 60%); animation-delay: -7s; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, 5%) scale(1.05); }
}

.login-card {
  background: var(--surface);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--glass-shadow), 0 20px 40px rgba(0,0,0,0.03);
  text-align: center;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-card:hover {
  transform: translateY(-4px);
}

.login-logo {
  width: 90px;
  height: 90px;
  margin-bottom: 24px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(14, 94, 111, 0.15);
}

.login-card p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

/* Workspace */
.workspace {
  padding: 48px 64px;
  max-width: 1400px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

#viewSubtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-top: 6px;
}

.view {
  display: none;
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(14, 94, 111, 0.08);
  border-color: rgba(47, 184, 172, 0.3);
}

.stat span {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.stat strong {
  font-size: 2.8rem;
  font-family: 'Nunito', sans-serif;
  color: var(--primary);
  line-height: 1;
}

/* Premium Panel/Card */
.panel {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--glass-shadow);
  margin-bottom: 32px;
  transition: box-shadow 0.3s ease;
}

.panel:hover {
  box-shadow: 0 12px 48px rgba(14, 94, 111, 0.06);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(14, 94, 111, 0.05);
}

.panel-head h2 { margin-bottom: 0; }

.list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* List Row Card */
.row-card {
  background: var(--surface-solid);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  border: 1px solid rgba(14, 94, 111, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.row-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 12px 24px rgba(14, 94, 111, 0.08);
  border-color: rgba(47, 184, 172, 0.2);
}

.meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Forms & Inputs */
label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 16px 20px;
  border: 1px solid rgba(14, 94, 111, 0.15);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  color: var(--text-main);
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #FFF;
  box-shadow: 0 0 0 4px var(--accent-glow), inset 0 2px 4px rgba(0,0,0,0.01);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

input[type="date"], input[type="time"] {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--surface-solid);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E5E6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
}

input[readonly], textarea[readonly] {
  background: rgba(14, 94, 111, 0.02);
  border-color: transparent;
  color: var(--text-muted);
}

/* Buttons */
button {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.btn-loading {
  opacity: 0.8 !important;
  cursor: wait !important;
  pointer-events: none;
}

.btn-loading::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

.secondary.btn-loading::before {
  border: 3px solid rgba(14, 94, 111, 0.1);
  border-top-color: var(--primary);
}

.full-width-btn {
  width: 100%;
}

button.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--primary-glow);
  background: #116c80;
}

button.secondary {
  background: white;
  color: var(--primary);
  border: 1px solid rgba(14, 94, 111, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

button.secondary:hover:not(:disabled) {
  background: #F8FAFC;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47, 184, 172, 0.1);
}

button.ghost {
  background: transparent;
  color: var(--text-muted);
}

button.ghost:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
}

/* Grid & Layouts */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.span-2 {
  grid-column: span 2;
}

.row-card .actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.row-card .actions button {
  padding: 8px 16px;
  font-size: 0.9rem;
}

@keyframes spin { 
  100% { transform: rotate(360deg); } 
}
.spinner {
  display: inline-block; 
  width: 40px; 
  height: 40px; 
  border: 4px solid rgba(47, 184, 172, 0.2); 
  border-top-color: var(--accent); 
  border-radius: 50%; 
  animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
  margin: 20px auto;
}

.actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Chips / Pill Buttons (Checkboxes/Radios) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips label {
  flex-direction: row;
  align-items: center;
  background: white;
  border: 1px solid rgba(14, 94, 111, 0.15);
  padding: 12px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.chips label:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(47, 184, 172, 0.1);
}

.chips label:has(input:checked) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.chips input {
  display: none;
}

/* Dropzone styling for upload */
.dropzone-container {
  border: 2px dashed rgba(47, 184, 172, 0.4);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(47, 184, 172, 0.02);
  transition: all 0.3s ease;
}

.dropzone-container:hover {
  border-color: var(--accent);
  background: rgba(47, 184, 172, 0.06);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Nunito', sans-serif;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.tag.PENDING_REVIEW, .tag.PENDING { background: #FEF3C7; color: #D97706; }
.tag.APPROVED, .tag.SUCCESS { background: #E0F2F1; color: #00897B; }
.tag.NEED_EDIT { background: #E3F2FD; color: #1E88E5; }
.tag.DELETED, .tag.FAILED { background: #FFEBEE; color: #E53935; }
.tag.ACTIVE { background: #E8EAF6; color: #3949AB; }
.tag.LOCKED { background: #F5F5F5; color: #616161; }

/* Toast */
.toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: var(--primary);
  color: white;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 32px var(--primary-glow);
  font-weight: 500;
  z-index: 9999;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  font-weight: bold;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.filters {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.filters select {
  max-width: 240px;
}

.mt-4 {
  margin-top: 32px;
}

.detail-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 32px;
  margin-bottom: 32px;
  background: rgba(14, 94, 111, 0.02);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 94, 111, 0.05);
}

.detail-grid strong {
  color: var(--text-muted);
  font-weight: 600;
}

/* Modals Overlay */
.overlay {
  background: rgba(14, 94, 111, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
}

.modal {
  background: var(--surface-solid);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Progress Bar Wrapper */
.progress-container {
  width: 100%;
  height: 12px;
  background: rgba(14, 94, 111, 0.1);
  border-radius: 100px;
  overflow: hidden;
  margin: 24px 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 0.3s ease;
}

/* Utilities for Forms & Dropzones */
.highlight-header {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.highlight-header h2 { color: var(--accent); }

.required { color: var(--danger); }

.form-group { margin-bottom: 12px; }
.group-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: block;
}

.radio-group {
  display: flex;
  gap: 16px;
  align-items: center;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  margin: 0;
  cursor: pointer;
}

.split-inputs {
  display: flex;
  gap: 8px;
  width: 100%;
}
.split-inputs input { flex: 1; }

.upload-group { display: block; margin-bottom: 16px; }
.upload-title { margin-bottom: 8px; font-weight: 600; }
.upload-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}
.file-names {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
}
.hidden-input { display: none; }
.dropzone-icon { font-size: 32px; display: block; margin-bottom: 12px; }
.dropzone-text { color: var(--accent); font-weight: 600; font-size: 0.95rem; }

/* Modals Refined */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: var(--surface);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  border: var(--glass-border);
  text-align: center;
}
.modal-box h3 { margin-bottom: 12px; font-size: 1.4rem; }
.modal-box p { margin-bottom: 24px; color: var(--text-muted); line-height: 1.6; }
.modal-input { margin-bottom: 24px; }
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.progress-wrapper {
  margin-bottom: 24px;
  width: 100%;
  text-align: left;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--accent);
}
.progress-wrapper progress {
  width: 100%;
  height: 8px;
  border-radius: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .app-shell {
    flex-direction: column-reverse;
  }
  
  /* Lưới thống kê Dashboard 2x2 trên điện thoại */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat {
    padding: 20px 12px;
    align-items: center;
    text-align: center;
    cursor: pointer;
  }
  .stat span {
    font-size: 0.75rem;
  }
  .stat strong {
    font-size: 2.2rem;
  }
  
  /* Hamburger Sidebar Drawer */
  .mobile-only {
    display: inline-flex !important;
  }
  .desktop-only {
    display: none !important;
  }
  .sidebar {
    width: 280px;
    height: 100vh;
    padding: 24px;
    border-right: none;
    border-left: var(--glass-border);
    position: fixed;
    top: 0;
    right: -300px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    z-index: 9999;
    box-shadow: -4px 0 24px rgba(14, 94, 111, 0.1);
    transition: right 0.3s ease;
  }
  .sidebar.open {
    right: 0;
  }
  
  .nav {
    flex-direction: column;
    justify-content: flex-start;
  }
  .nav button {
    flex: none;
    text-align: left;
    padding: 16px 20px;
    font-size: 1rem;
    flex-direction: row;
    gap: 12px;
    border-radius: var(--radius-sm);
  }
  .nav button::before {
    font-size: 1.2rem;
  }
  
  .workspace {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom)) 16px;
    flex: 1;
    overflow-y: auto;
  }
  
  .topbar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
  }
  .login-card {
    padding: 32px 20px;
    margin: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .span-2 {
    grid-column: span 1;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }
  
  /* Mobile Stacked Tables */
  .row-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
  .row-card .actions {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid rgba(14, 94, 111, 0.05);
    padding-top: 16px;
  }
  
  /* Filters for Mobile */
  .filters {
    flex-direction: column;
    gap: 12px;
  }
  .filters select, .filters input, .filters button {
    max-width: 100%;
    width: 100%;
  }
  
  /* Split inputs adjust */
  .split-inputs {
    flex-direction: column;
  }
  
  /* Mobile Typography & Panel Layout */
  h1 { font-size: 1.4rem !important; }
  h2 { font-size: 1.2rem !important; margin-bottom: 0.8rem; }
  .panel { padding: 20px 16px; }
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 12px;
  }
  .panel-head h2 { margin-bottom: 0; }
  label { font-size: 0.9rem; }
}
