/* ========================================
   IRRI AI Knowledge System — Design System
   ======================================== */

/* --- CSS Variables --- */
:root {
  --irri-green: #00833E;
  --irri-green-dark: #005A2A;
  --irri-green-pale: #E8F5ED;
  --irri-green-light: #A7D8B8;

  --accent-blue: #2563EB;
  --accent-blue-light: #DBEAFE;
  --accent-red: #DC2626;
  --accent-red-light: #FEE2E2;
  --accent-amber: #D97706;
  --accent-amber-light: #FEF3C7;
  --accent-purple: #7C3AED;
  --accent-purple-light: #EDE9FE;

  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);

  --sidebar-width: 250px;
  --topbar-height: 60px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--irri-green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ==============================
   LOGIN PAGE
   ============================== */
.login-page {
  display: flex;
  min-height: 100vh;
}
.login-left {
  width: 45%;
  background: linear-gradient(160deg, #00833E 0%, #004D24 60%, #002E16 100%);
  color: #fff;
  padding: 50px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-left h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.login-left p {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.7;
  max-width: 420px;
}
.login-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-features .feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  opacity: 0.85;
}
.login-features .f-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.login-right {
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--gray-50);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.login-logo .icon {
  width: 44px;
  height: 44px;
  background: var(--irri-green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.login-logo .text {
  font-size: 16px;
  font-weight: 700;
  color: var(--irri-green-dark);
}
.login-logo .text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-500);
}
.login-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.login-card .subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.login-error {
  background: var(--accent-red-light);
  color: var(--accent-red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
}
.login-error.show { display: block; }
.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--irri-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.login-btn:hover { background: var(--irri-green-dark); }

/* ==============================
   SIDEBAR
   ============================== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-brand .icon {
  width: 38px;
  height: 38px;
  background: var(--irri-green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sidebar-brand .text {
  font-size: 14px;
  font-weight: 700;
  color: var(--irri-green-dark);
  line-height: 1.2;
}
.sidebar-brand .text small {
  font-size: 10px;
  font-weight: 400;
  color: var(--gray-400);
  display: block;
}
.sidebar-menu {
  flex: 1;
  padding: 12px 10px;
}
.sidebar-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  padding: 14px 12px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.sidebar-link:hover {
  background: var(--gray-100);
  color: var(--gray-800);
  text-decoration: none;
}
.sidebar-link.active {
  background: var(--irri-green-pale);
  color: var(--irri-green-dark);
  font-weight: 600;
}
.sidebar-link .icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
}
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--gray-100);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: default;
}
.sidebar-user .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--irri-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--irri-green);
}
.sidebar-user .info {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}
.sidebar-user .info small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-400);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-red);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.sidebar-logout:hover {
  background: var(--accent-red-light);
  text-decoration: none;
}

/* ==============================
   TOPBAR
   ============================== */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 90;
}
.topbar h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==============================
   MAIN CONTENT
   ============================== */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--topbar-height);
  padding: 24px 28px;
  min-height: calc(100vh - var(--topbar-height));
}

/* ==============================
   FILTER BAR
   ============================== */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-group select,
.filter-group input[type="date"] {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--gray-700);
  background: #fff;
  min-width: 150px;
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--irri-green);
  box-shadow: 0 0 0 3px rgba(0,131,62,0.1);
}

/* ==============================
   STATS GRID
   ============================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.stat-icon.green { background: var(--irri-green-pale); }
.stat-icon.blue { background: var(--accent-blue-light); }
.stat-icon.purple { background: var(--accent-purple-light); }
.stat-icon.amber { background: var(--accent-amber-light); }
.stat-icon.red { background: var(--accent-red-light); }
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 2px;
}
.stat-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}
.stat-change.up { color: var(--irri-green); }
.stat-change.down { color: var(--accent-red); }

/* ==============================
   CARDS
   ============================== */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-100);
}
.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}
.card-body {
  padding: 22px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* ==============================
   BADGES & TAGS
   ============================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-green { background: var(--irri-green-pale); color: var(--irri-green-dark); }
.badge-blue { background: var(--accent-blue-light); color: #1D4ED8; }
.badge-red { background: var(--accent-red-light); color: var(--accent-red); }
.badge-amber { background: var(--accent-amber-light); color: #92400E; }
.badge-purple { background: var(--accent-purple-light); color: var(--accent-purple); }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
}

/* ==============================
   DATA TABLES
   ============================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.data-table tbody td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ==============================
   PAGINATION
   ============================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--gray-100);
}
.pagination .info {
  font-size: 12px;
  color: var(--gray-500);
}
.pagination .pages {
  display: flex;
  gap: 4px;
}
.pagination .pages button {
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  color: var(--gray-600);
  font-weight: 500;
}
.pagination .pages button.active {
  background: var(--irri-green);
  color: #fff;
  border-color: var(--irri-green);
}
.pagination .pages button:hover:not(.active) { background: var(--gray-50); }

/* ==============================
   BUTTONS
   ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--irri-green); color: #fff; }
.btn-primary:hover { background: var(--irri-green-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger { background: var(--accent-red-light); color: var(--accent-red); }
.btn-danger:hover { background: #FECACA; }
.btn-success { background: var(--irri-green-pale); color: var(--irri-green); }
.btn-success:hover { background: #C6F0D3; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-xs { padding: 5px 10px; font-size: 11px; border-radius: var(--radius-sm); }

/* ==============================
   FORMS
   ============================== */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 5px;
}
.form-group .required { color: var(--accent-red); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--gray-700);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--irri-green);
  box-shadow: 0 0 0 3px rgba(0,131,62,0.1);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--irri-green);
}

/* ==============================
   SEARCH BAR
   ============================== */
.search-bar { position: relative; }
.search-bar input {
  padding: 8px 14px 8px 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--gray-700);
  width: 220px;
  background: var(--gray-50);
}
.search-bar input:focus {
  outline: none;
  border-color: var(--irri-green);
  background: #fff;
}
.search-bar::before {
  content: "\1F50D";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.4;
}

/* ==============================
   MODALS
   ============================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.25s ease;
}
@keyframes modalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}
.modal-header h2 {
  font-size: 17px;
  font-weight: 700;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: background 0.15s;
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 24px; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
}

/* ==============================
   DETAIL GRID (for view modals)
   ============================== */
.detail-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
}
.detail-label {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.detail-value {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.detail-grid .detail-label:last-of-type,
.detail-grid .detail-value:last-of-type { border-bottom: none; }

/* ==============================
   TREND CHART (bar chart)
   ============================== */
.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  padding-bottom: 4px;
}
.trend-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--irri-green) 0%, var(--irri-green-light) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: opacity 0.15s;
  cursor: pointer;
  position: relative;
}
.trend-chart .bar:hover { opacity: 0.8; }
.trend-labels {
  display: flex;
  gap: 6px;
}
.trend-labels span {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 500;
}

/* ==============================
   BAR CHART (horizontal)
   ============================== */
.chart-bar-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chart-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chart-bar-item .label {
  width: 90px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
  flex-shrink: 0;
}
.bar-track {
  flex: 1;
  height: 28px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  transition: width 0.6s ease;
}
.chart-bar-item .value {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  width: 50px;
  text-align: right;
}

/* ==============================
   MAP
   ============================== */
.map-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gray-500);
}
.legend-color {
  width: 16px;
  height: 12px;
  border-radius: 2px;
}

/* ==============================
   AUDIO PLAYER
   ============================== */
.audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}
.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--irri-green);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.play-btn:hover { background: var(--irri-green-dark); }
.waveform {
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.waveform .wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--irri-green-light);
  transition: background 0.1s;
}
.duration {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
  flex-shrink: 0;
}

/* ==============================
   TOGGLE SWITCH
   ============================== */
.toggle {
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: var(--gray-300);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.toggle.active { background: var(--irri-green); }
.toggle.active::after { transform: translateX(18px); }

/* ==============================
   CHECK LIST (for catalogue doc selection)
   ============================== */
.check-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 4px 0;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.1s;
}
.check-item:hover { background: var(--gray-50); }
.check-item input { accent-color: var(--irri-green); }

/* ==============================
   ANIMATIONS
   ============================== */
.fade-in {
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .topbar { left: 0; }
  .main-content { margin-left: 0; }
  .login-left { display: none; }
  .login-right { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
