/* ==========================================================================
   SIM-PENGAWAS: SATU DATA KEPENDIDIKAN BERBASIS TUGAS POKOK PENGAWAS SEKOLAH
   Modern Educational GovTech Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.15);

  --secondary: #0d9488;
  --secondary-light: #f0fdfa;
  
  --accent-purple: #7c3aed;
  --accent-amber: #d97706;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;

  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --dark-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Status Colors */
  --badge-mandiri-bg: #ecfdf5;
  --badge-mandiri-text: #065f46;
  --badge-menengah-bg: #eff6ff;
  --badge-menengah-text: #1e40af;
  --badge-intensif-bg: #fffbeb;
  --badge-intensif-text: #92400e;
  --badge-danger-bg: #fef2f2;
  --badge-danger-text: #991b1b;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --border-light: 1px solid #e2e8f0;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: #f8fafc;
  color: var(--dark-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* App Wrapper */
.app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #3b82f6 0%, #0d9488 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.sidebar-menu {
  flex: 1;
  padding: 1.25rem 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.menu-category {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
  padding: 0.75rem 0.75rem 0.35rem;
  margin-top: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-link:hover i {
  color: #38bdf8;
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.1) 100%);
  color: #60a5fa;
  font-weight: 600;
  border-left: 3px solid #3b82f6;
}

.nav-link.active i {
  color: #60a5fa;
}

.sidebar-footer {
  padding: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(0, 0, 0, 0.2);
}

.pengawas-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.pengawas-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.avatar-badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981 0%, #0284c7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pengawas-info {
  flex: 1;
  overflow: hidden;
}

.pengawas-info .nama {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pengawas-info .nip {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-wrapper {
  margin-left: 280px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
  transition: margin-left var(--transition-normal);
}

/* Top Navbar */
.topbar {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--dark-700);
  cursor: pointer;
}

.page-title-badge {
  display: flex;
  flex-direction: column;
}

.page-title-badge h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-900);
  letter-spacing: -0.01em;
}

.page-title-badge p {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--slate-100);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark-700);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* Page Content Container */
.page-container {
  padding: 2rem;
  flex: 1;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.view-section.active {
  display: block;
}

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

/* ==========================================================================
   CARDS & METRICS
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.stat-card.emerald::after { background: var(--accent-emerald); }
.stat-card.purple::after { background: var(--accent-purple); }
.stat-card.amber::after { background: var(--accent-amber); }
.stat-card.teal::after { background: var(--secondary); }

.stat-content .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.stat-content .stat-value {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--dark-900);
  line-height: 1.2;
}

.stat-content .stat-desc {
  font-size: 0.76rem;
  color: var(--slate-500);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.stat-icon.blue { background: #eff6ff; color: #2563eb; }
.stat-icon.emerald { background: #ecfdf5; color: #059669; }
.stat-icon.purple { background: #f5f3ff; color: #7c3aed; }
.stat-icon.amber { background: #fffbeb; color: #d97706; }
.stat-icon.teal { background: #f0fdfa; color: #0d9488; }

/* Content Cards */
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-header-title i {
  font-size: 1.2rem;
  color: var(--primary);
}

.card-header-title h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-900);
}

.card-header-title p {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.card-body {
  padding: 1.5rem;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-wrapper {
  position: relative;
  height: 320px;
  width: 100%;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--slate-300);
  color: var(--dark-700);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-success {
  background: var(--accent-emerald);
  color: #fff;
}

.btn-success:hover {
  background: #047857;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.badge-mandiri { background: var(--badge-mandiri-bg); color: var(--badge-mandiri-text); }
.badge-menengah { background: var(--badge-menengah-bg); color: var(--badge-menengah-text); }
.badge-intensif { background: var(--badge-intensif-bg); color: var(--badge-intensif-text); }

.badge-amat-baik { background: #dcfce7; color: #15803d; }
.badge-baik { background: #dbeafe; color: #1d4ed8; }
.badge-cukup { background: #fef3c7; color: #b45309; }
.badge-kurang { background: #fee2e2; color: #b91c1c; }

.badge-negeri { background: #ede9fe; color: #6d28d9; }
.badge-swasta { background: #ffedd5; color: #c2410c; }

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 420px;
}

.search-box i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-300);
  font-size: 0.85rem;
  font-family: var(--font-main);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.select-filter {
  padding: 0.55rem 1.85rem 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-300);
  background: var(--white);
  font-size: 0.82rem;
  font-family: var(--font-main);
  color: var(--dark-800);
  cursor: pointer;
}

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

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}

.data-table th {
  background: var(--slate-50);
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
}

.data-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--slate-100);
  color: var(--dark-800);
  vertical-align: middle;
  background: var(--white);
  transition: background var(--transition-fast);
}

.data-table tr:hover td {
  background-color: #f8fafc;
}

.school-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.school-icon-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.school-details .title {
  font-weight: 600;
  color: var(--dark-900);
  cursor: pointer;
}

.school-details .title:hover {
  color: var(--primary);
}

.school-details .sub {
  font-size: 0.74rem;
  color: var(--slate-400);
}

/* Score Pills */
.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
}

.score-high { background: #dcfce7; color: #166534; }
.score-med { background: #fef3c7; color: #92400e; }
.score-low { background: #fee2e2; color: #991b1b; }

/* ==========================================================================
   MODAL WINDOWS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal-box.modal-lg {
  max-width: 900px;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--slate-200);
  color: var(--dark-800);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8fafc;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.form-group.col-full {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-700);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-300);
  font-family: var(--font-main);
  font-size: 0.85rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 85px;
}

/* ==========================================================================
   TABS & REPORT SPECIAL STYLING
   ========================================================================== */
.custom-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.65rem 1.25rem;
  border: none;
  background: transparent;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

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

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

/* Notice / Policy Box */
.notice-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%);
  border-left: 4px solid var(--primary);
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.notice-box i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 0.15rem;
}

.notice-box h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 0.25rem;
}

.notice-box p {
  font-size: 0.82rem;
  color: var(--dark-700);
  line-height: 1.5;
}

/* Timeline & Feed */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 6px;
  width: 2px;
  background: var(--slate-200);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-card {
  background: var(--slate-50);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
}

.timeline-time {
  font-size: 0.72rem;
  color: var(--slate-400);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark-900);
  margin-bottom: 0.35rem;
}

.timeline-body {
  font-size: 0.82rem;
  color: var(--dark-700);
}

/* ==========================================================================
   OFFICIAL PRINT / REPORT STYLES
   ========================================================================== */
.official-report-container {
  background: #fff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  max-width: 960px;
  margin: 0 auto;
}

.kop-surat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border-bottom: 3px double #000;
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.kop-logo {
  width: 75px;
  height: auto;
}

.kop-text h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
  letter-spacing: 0.05em;
}

.kop-text h4 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
}

.kop-text p {
  font-size: 0.78rem;
  color: #333;
}

.report-title-section {
  text-align: center;
  margin-bottom: 2rem;
}

.report-title-section h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: underline;
  margin-bottom: 0.35rem;
}

.report-title-section p {
  font-size: 0.85rem;
  font-weight: 600;
}

.ttd-section {
  display: flex;
  justify-content: space-between;
  margin-top: 3.5rem;
  page-break-inside: avoid;
}

.ttd-box {
  width: 260px;
  text-align: center;
  font-size: 0.85rem;
}

.ttd-space {
  height: 75px;
}

@media print {
  body {
    background: #fff !important;
  }
  .sidebar, .topbar, .btn, .filter-bar, .modal-overlay, .no-print {
    display: none !important;
  }
  .main-wrapper {
    margin-left: 0 !important;
  }
  .page-container {
    padding: 0 !important;
  }
  .official-report-container {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .mobile-toggle {
    display: block;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.col-full {
    grid-column: span 1;
  }
}
