/* ==========================================================================
   SISTEM SEMAKAN & DASHBOARD PENILAIAN TAHAP KESEDIAAN TnD KP2027
   NEGERI TERENGGANU (JPNT / KPM)
   Design System: Royal Navy & Amber Gold Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #080f1d;
  --bg-secondary: #0e1a2f;
  --bg-card: rgba(18, 32, 58, 0.7);
  --bg-card-hover: rgba(26, 44, 78, 0.85);
  --bg-glass: rgba(15, 28, 51, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(212, 175, 55, 0.3);

  /* Primary Brand: Terengganu Gold & Royal Blue */
  --gold-primary: #d4af37;
  --gold-bright: #f6c845;
  --gold-glow: rgba(246, 200, 69, 0.35);
  --blue-accent: #38bdf8;
  --blue-royal: #1e40af;
  --blue-deep: #0369a1;

  /* Status Colors */
  --status-complete: #10b981;
  --status-complete-bg: rgba(16, 185, 129, 0.15);
  --status-complete-border: rgba(16, 185, 129, 0.3);
  
  --status-partial: #f59e0b;
  --status-partial-bg: rgba(245, 158, 11, 0.15);
  --status-partial-border: rgba(245, 158, 11, 0.3);

  --status-none: #ef4444;
  --status-none-bg: rgba(239, 68, 68, 0.15);
  --status-none-border: rgba(239, 68, 68, 0.3);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(30, 58, 138, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(14, 26, 47, 0.8) 0%, var(--bg-primary) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Layout Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 20px 60px 20px;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.header-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #f6c845, #38bdf8, #d4af37);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
}

.emblem-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #1e3a8a, #0b192c);
  border: 2px solid var(--gold-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.brand-info h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-info h1 span {
  background: linear-gradient(90deg, #f6c845, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37, #b89125);
  color: #0b1322;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f6c845, #d4af37);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(246, 200, 69, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn-success:hover {
  background: #10b981;
  color: #ffffff;
}

/* Header Badges Bar */
.header-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-pill strong {
  color: var(--text-main);
}

.meta-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   KPI OVERVIEW STATS CARDS
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

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

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

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 6px;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}

.stat-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s ease-in-out;
}

/* Card Specific Theme Accents */
.card-total .stat-icon { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.card-total .stat-progress-fill { background: linear-gradient(90deg, #0284c7, #38bdf8); }

.card-target .stat-icon { background: rgba(212, 175, 55, 0.15); color: #f6c845; }
.card-target .stat-progress-fill { background: linear-gradient(90deg, #d4af37, #f6c845); }

.card-complete .stat-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.card-complete .stat-progress-fill { background: #10b981; }

.card-partial .stat-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.card-partial .stat-progress-fill { background: #f59e0b; }

.card-none .stat-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.card-none .stat-progress-fill { background: #ef4444; }

/* ==========================================================================
   PPD BREAKDOWN SECTION
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 16px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span.badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-bright);
}

.ppd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.ppd-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.ppd-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ppd-card.active-filter {
  border-color: var(--gold-primary);
  background: rgba(30, 58, 102, 0.9);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

.ppd-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ppd-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.ppd-count-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-muted);
}

.ppd-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.ppd-completion {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.ppd-target-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.ppd-pills-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.ppd-pill {
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ppd-pill.l { background: var(--status-complete-bg); color: var(--status-complete); }
.ppd-pill.s { background: var(--status-partial-bg); color: var(--status-partial); }
.ppd-pill.b { background: var(--status-none-bg); color: var(--status-none); }

/* ==========================================================================
   FILTER & SEARCH CONTROLS
   ========================================================================== */
.controls-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  flex: 1 1 320px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: rgba(10, 19, 36, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.select-custom {
  padding: 10px 14px;
  background: rgba(10, 19, 36, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.86rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.select-custom:focus {
  outline: none;
  border-color: var(--gold-primary);
}

#filter-school {
  min-width: 220px;
  max-width: 360px;
}

.filter-count-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: auto;
}

.filter-count-info strong {
  color: var(--gold-bright);
}

/* ==========================================================================
   DATA TABLE & LIST VIEW
   ========================================================================== */
.table-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.custom-table thead {
  background: rgba(10, 18, 32, 0.95);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.custom-table th {
  padding: 14px 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

.custom-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.custom-table th.sortable:hover {
  color: var(--gold-bright);
}

.custom-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast);
}

.custom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.custom-table td {
  padding: 13px 16px;
  vertical-align: middle;
}

/* School Table Elements */
.school-code-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: inline-block;
}

.school-name-text {
  font-weight: 600;
  color: #ffffff;
  display: block;
  line-height: 1.3;
}

.school-category-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.ppd-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Quota Gauge & Dots */
.quota-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quota-fraction {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  min-width: 42px;
}

.quota-dots {
  display: flex;
  gap: 4px;
}

.quota-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.quota-dot.filled {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.quota-dot.partial {
  background: #f59e0b;
  border-color: #f59e0b;
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-complete {
  background: var(--status-complete-bg);
  border: 1px solid var(--status-complete-border);
  color: #34d399;
}

.badge-partial {
  background: var(--status-partial-bg);
  border: 1px solid var(--status-partial-border);
  color: #fbbf24;
}

.badge-none {
  background: var(--status-none-bg);
  border: 1px solid var(--status-none-border);
  color: #f87171;
}

/* Action Icon Buttons */
.action-btn-group {
  display: flex;
  gap: 6px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-icon.wa:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  color: #25d366;
}

.btn-icon.detail:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ==========================================================================
   MODAL WINDOWS & DRAWERS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #0f1d36;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 26, 49, 0.8);
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(14, 26, 49, 0.8);
}

/* Modal Internal Sections */
.detail-banner {
  background: rgba(19, 34, 63, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.88rem;
}

.detail-label {
  color: var(--text-muted);
}

.detail-val {
  font-weight: 600;
  color: #ffffff;
}

.role-quota-list {
  list-style: none;
  margin-top: 12px;
}

.role-quota-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.role-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-bright);
}

.message-preview-box {
  background: #08111e;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  font-family: inherit;
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: #e2e8f0;
  max-height: 260px;
  overflow-y: auto;
  line-height: 1.6;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e3a8a;
  border: 1px solid var(--gold-primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .header-actions, .controls-card, .btn-icon, .modal-overlay, .toast, .quota-dots {
    display: none !important;
  }
  .header-card, .table-card, .ppd-card, .stat-card {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
  .brand-info h1, .stat-value, .school-name-text {
    color: #000000 !important;
  }
  .custom-table th {
    background: #eeeeee !important;
    color: #000000 !important;
  }
  .custom-table td {
    color: #000000 !important;
    border-bottom: 1px solid #dddddd !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .header-card {
    padding: 20px;
  }
  .brand-info h1 {
    font-size: 1.3rem;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .controls-card {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
    flex: auto;
  }
  .filter-group {
    width: 100%;
    flex-direction: column;
  }
  .select-custom {
    width: 100%;
  }
}

/* ==========================================================================
   OFFICIAL NOTICE BANNER & CATEGORY SWITCH TABS
   ========================================================================== */
.official-notice-banner {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(30, 58, 138, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 5px solid #f59e0b;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.4s ease-out;
}

.notice-icon-box {
  font-size: 1.8rem;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}

.notice-content {
  flex: 1;
}

.notice-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.notice-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

.notice-desc strong {
  color: #ffffff;
}

.notice-stats-inline {
  display: inline-flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.notice-stat-chip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ==========================================================================
   QUICK STATUS FILTER BAR & DEDICATED ACTION
   ========================================================================== */
.quick-status-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 8px 14px;
  backdrop-filter: blur(10px);
}

.filter-pills-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.status-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  transform: translateY(-1px);
}

.status-pill-btn .pill-count {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 800;
}

/* Specific Pill Styles */
.status-pill-btn.pill-belum {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.status-pill-btn.pill-belum:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.6);
}
.status-pill-btn.pill-belum.active {
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.status-pill-btn.pill-partial {
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}
.status-pill-btn.pill-partial:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.6);
}
.status-pill-btn.pill-partial.active {
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
  color: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.status-pill-btn.pill-complete {
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.status-pill-btn.pill-complete:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.6);
}
.status-pill-btn.pill-complete.active {
  background: linear-gradient(135deg, #047857 0%, #10b981 100%);
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.status-pill-btn.pill-all {
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}
.status-pill-btn.pill-all:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.6);
}
.status-pill-btn.pill-all.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.blink-danger {
  background: #ef4444 !important;
  animation: pulseBlink 1.4s infinite;
}

@keyframes pulseBlink {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  50% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.btn-action-highlight {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 1px solid #ef4444;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.btn-action-highlight:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

/* Clickable Stat Cards */
.stat-card.is-clickable {
  cursor: pointer;
  position: relative;
}

.stat-card.is-clickable:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.stat-card.is-active-filter {
  outline: 2px solid var(--gold-bright);
  box-shadow: 0 0 20px rgba(246, 200, 69, 0.3);
}

.card-hint-click {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Alert Banner in Table when filtered to Belum Isi */
.active-filter-alert-banner {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.25) 0%, rgba(127, 29, 29, 0.35) 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.alert-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-banner-icon {
  font-size: 1.6rem;
}

.alert-banner-title {
  color: #fca5a5;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.alert-banner-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

.btn-banner-action {
  background: #ef4444;
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

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

/* Badges */
.badge-bil-surat {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 6px;
}

/* Modal for Unfilled Schools Grouped by PPD */
.modal-unfilled-dialog {
  max-width: 900px !important;
  width: 92%;
}

.ppd-unfilled-group-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.ppd-unfilled-group-header {
  background: rgba(30, 41, 59, 0.8);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.ppd-unfilled-group-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ppd-unfilled-group-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
}

.ppd-unfilled-list {
  padding: 8px 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 8px;
}

.ppd-unfilled-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  gap: 10px;
}

.ppd-unfilled-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ppd-unfilled-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.ppd-unfilled-item-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ppd-unfilled-item-code {
  font-size: 0.72rem;
  color: var(--gold-bright);
  font-weight: 700;
}


