/* ==========================================================================
   CSS: Form Pendataan Alergi Makanan BGN Kabupaten Demak
   Ringan, Bersih, Modern, Mobile-First, Bebas Dependensi Eksternal
   ========================================================================== */

:root {
  --primary: #0f4c81;
  --primary-dark: #0a3357;
  --primary-light: #e0f2fe;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --success: #059669;
  --success-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #eab308;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #38bdf8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.app-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px 40px;
  flex: 1;
}

/* Header Banner */
.app-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.app-header::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.header-text {
  flex: 1;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fef08a;
  margin-bottom: 6px;
  border: 1px solid rgba(254, 240, 138, 0.3);
}

.header-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 4px;
}

.header-subtitle {
  font-size: 13px;
  color: #cbd5e1;
}

/* Navigasi Tab */
.tab-nav {
  display: flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-btn .badge-counter {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Tab Content Visibility */
.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tab-pane.active {
  display: block;
}

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

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.card-title .icon {
  color: var(--primary);
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-label .req {
  color: var(--danger);
  margin-left: 2px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-control {
  width: 100%;
  padding: 10px 13px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.form-control:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Custom Highlight Box for SPPG (Field 1 - Paling Awal) */
.highlight-field {
  background: linear-gradient(to bottom, #f0f9ff, #ffffff);
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.highlight-field .badge-priority {
  display: inline-block;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Custom Searchable Select Combobox */
.searchable-select-wrap {
  position: relative;
  width: 100%;
}

.select-trigger {
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--text-main);
  transition: all 0.2s ease;
  user-select: none;
}

.select-trigger:hover {
  border-color: #cbd5e1;
}

.select-trigger.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.select-trigger.disabled {
  background-color: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: var(--border);
}

.select-trigger .placeholder {
  color: #94a3b8;
}

.select-trigger .chevron {
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.select-trigger.active .chevron {
  transform: rotate(180deg);
}

.select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
  max-height: 280px;
  overflow: hidden;
  flex-direction: column;
}

.select-dropdown.show {
  display: flex;
}

.select-search-bar {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-search-bar input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}

.select-search-bar input:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.select-options-list {
  overflow-y: auto;
  max-height: 220px;
  padding: 4px;
}

.select-option {
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text-main);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.select-option:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.select-option.selected {
  background: #e0f2fe;
  color: var(--primary-dark);
  font-weight: 600;
}

.select-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Radio Chip Groups (Ya / Tidak) */
.radio-chips-group {
  display: flex;
  gap: 12px;
}

.radio-chip {
  flex: 1;
  position: relative;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.radio-chip label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-chip input:checked + label.option-ya {
  border-color: var(--danger);
  background: var(--danger-light);
  color: var(--danger);
}

.radio-chip input:checked + label.option-tidak {
  border-color: var(--success);
  background: var(--success-light);
  color: var(--success);
}

/* Checkbox Grid for Allergies */
.allergy-selection-container {
  transition: all 0.3s ease;
}

.allergy-selection-container.disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.8);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.checkbox-chip {
  position: relative;
}

.checkbox-chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.checkbox-chip label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.checkbox-chip label .check-icon {
  width: 16px;
  height: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.checkbox-chip input:checked + label {
  border-color: var(--primary);
  background: #f0f9ff;
  color: var(--primary-dark);
}

.checkbox-chip input:checked + label .check-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Dynamic Text Input for 'Lainnya' */
.dynamic-other-box {
  display: none;
  animation: slideDown 0.25s ease forwards;
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 10px;
}

.dynamic-other-box.show {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Action Buttons */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  flex: 2;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.25);
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text-main);
  flex: 1;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

/* Warning Box for Duplicate Student */
.student-warning-box {
  display: none;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 8px;
  font-size: 13px;
  color: #92400e;
  animation: slideDown 0.2s ease forwards;
}

/* ==========================================================================
   Halaman Analisis (Dashboard)
   ========================================================================== */

/* KPI Summary Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.stat-card.alert-card {
  border-left: 4px solid var(--danger);
  background: linear-gradient(to right, #fff5f5, #ffffff);
}

.stat-card.safe-card {
  border-left: 4px solid var(--success);
  background: linear-gradient(to right, #f0fdf4, #ffffff);
}

.stat-card.info-card {
  border-left: 4px solid var(--primary);
  background: linear-gradient(to right, #f0f9ff, #ffffff);
}

.stat-card.gold-card {
  border-left: 4px solid var(--accent);
  background: linear-gradient(to right, #fffbeb, #ffffff);
}

.stat-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Allergy Breakdown Chart Bars */
.allergy-bars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 600px) {
  .allergy-bars-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.allergy-bar-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.bar-progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.bar-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.bar-progress-fill.red { background: #ef4444; }
.bar-progress-fill.amber { background: #f59e0b; }
.bar-progress-fill.emerald { background: #10b981; }
.bar-progress-fill.blue { background: #3b82f6; }
.bar-progress-fill.purple { background: #8b5cf6; }

/* Filter Berjenjang Section (Kecamatan -> Kelurahan -> SPPG -> Sekolah) */
.filter-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.filter-stepper span.arrow {
  color: #94a3b8;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 840px) {
  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.filter-item label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.filter-item select,
.filter-item input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  outline: none;
  font-family: inherit;
  color: var(--text-main);
}

.filter-item select:focus,
.filter-item input:focus {
  border-color: var(--primary);
}

/* Global Instant Search Bar */
.global-search-wrap {
  margin-top: 12px;
  position: relative;
}

.global-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.global-search-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.global-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.filter-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.btn-reset-filter {
  font-size: 12px;
  background: none;
  border: none;
  color: #ef4444;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-reset-filter:hover {
  background: #fee2e2;
}

/* View Sub-Tabs (Per Sekolah vs Per SPPG) */
.view-subtabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
  gap: 8px;
}

.view-subtab-btn {
  padding: 8px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-subtab-btn:hover {
  color: var(--text-main);
}

.view-subtab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Result Cards: Data Per-Sekolah */
.school-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.school-card:hover {
  border-color: #cbd5e1;
}

.school-card-header {
  padding: 14px 16px;
  background: #fafaf9;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.school-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.school-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.school-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.school-pills {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.pill-success {
  background: #dcfce7;
  color: #15803d;
}

.pill-info {
  background: #e0f2fe;
  color: #0369a1;
}

.pill-warning {
  background: #fef3c7;
  color: #b45309;
}

/* Delete Action Buttons */
.btn-delete-student {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-delete-student:hover {
  background: #dc2626;
  color: #ffffff;
}

.btn-delete-school {
  background: #fee2e2;
  border: 1.5px solid #f87171;
  color: #991b1b;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-delete-school:hover {
  background: #b91c1c;
  color: #ffffff;
  border-color: #991b1b;
}

/* Student List inside School Card */
.student-list {
  padding: 8px 16px;
}

.student-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
  gap: 12px;
}

.student-item:last-child {
  border-bottom: none;
}

.student-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.student-name {
  font-weight: 600;
  color: var(--text-main);
}

.student-class {
  font-size: 12px;
  background: #f1f5f9;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
}

.student-allergies {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.badge-allergy {
  font-size: 11px;
  font-weight: 600;
  background: #ffe4e6;
  color: #e11d48;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.badge-no-allergy {
  font-size: 11px;
  font-weight: 600;
  background: #f0fdf4;
  color: #16a34a;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* SPPG Analysis Cards (Data Per-SPPG) */
.sppg-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.sppg-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.sppg-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sppg-schools-list {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px solid #f1f5f9;
}

.sppg-school-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #e2e8f0;
}

.sppg-school-row:last-child {
  border-bottom: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 36px 16px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: #94a3b8;
}

.empty-state-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  animation: toastIn 0.3s ease forwards;
  pointer-events: auto;
}

.toast.toast-success {
  background: #065f46;
  border-left: 4px solid #34d399;
}

.toast.toast-info {
  background: #0369a1;
  border-left: 4px solid #38bdf8;
}

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

/* Footer */
.app-footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.w-100 { width: 100%; }
