/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Fonts */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout Sizing */
  --sidebar-width: 280px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Color Palette - Light Mode Default */
  --bg-primary: #f1f5f9;
  --bg-secondary: rgba(255, 255, 255, 0.7);
  --bg-sidebar: rgba(255, 255, 255, 0.85);
  --bg-input: rgba(255, 255, 255, 0.9);
  --bg-modal: rgba(255, 255, 255, 0.95);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-color: rgba(226, 232, 240, 0.8);
  --border-glow: rgba(255, 255, 255, 0.6);
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  
  /* Brand/Status Colors */
  --color-accent: #0f4c81; /* KONI Official Blue-ish color */
  --color-accent-rgb: 15, 76, 129;
  --color-accent-light: #06b6d4;
  --color-cyan: #06b6d4;
  --color-green: #10b981;
  --color-purple: #8b5cf6;
  --color-red: #ef4444;
  --color-orange: #f59e0b;
  --color-white: #ffffff;
}

/* Dark Mode Overrides */
body.dark-mode {
  --bg-primary: #0b0f19;
  --bg-secondary: rgba(17, 24, 39, 0.7);
  --bg-sidebar: rgba(17, 24, 39, 0.85);
  --bg-input: rgba(31, 41, 55, 0.8);
  --bg-modal: rgba(17, 24, 39, 0.95);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(255, 255, 255, 0.03);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  
  --color-accent: #3b82f6;
  --color-accent-rgb: 59, 130, 246;
  --color-accent-light: #60a5fa;
  --color-white: #ffffff;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hilangkan tap-delay 300ms di semua browser mobile */
a, button, [role="button"], select, input, label,
.nav-item, .mobile-nav-item, .mobile-menu-btn,
.btn-primary, .btn-secondary, .pill-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  accent-color: var(--color-accent);
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Utility classes */
.hidden {
  display: none !important;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.w-full { width: 100% !important; }
.w-100 { width: 100px; }
.w-120 { width: 120px; }
.w-180 { width: 180px; }
.w-200 { width: 200px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--color-accent-light) !important; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.85rem; }
.font-bold { font-weight: 700; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.flex { display: flex; }

/* Status Colors */
.color-cyan { background-color: rgba(6, 182, 212, 0.15); color: var(--color-cyan); }
.color-green { background-color: rgba(16, 185, 129, 0.15); color: var(--color-green); }
.color-purple { background-color: rgba(139, 92, 246, 0.15); color: var(--color-purple); }
.color-red { background-color: rgba(239, 68, 68, 0.15); color: var(--color-red); }
.color-orange { background-color: rgba(245, 158, 11, 0.15); color: var(--color-orange); }

/* ==========================================================================
   AUTHENTICATION UI (LOGIN SCREEN)
   ========================================================================== */
.auth-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: radial-gradient(circle at center, rgba(var(--color-accent-rgb), 0.1) 0%, var(--bg-primary) 100%);
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-logo {
  height: 85px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

.auth-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb), 0.15);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.input-wrapper input:focus + .input-icon {
  color: var(--color-accent);
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--border-radius-sm);
  color: var(--color-red);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  animation: shake 0.4s ease;
}

.error-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BUTTONS STYLING
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, rgba(var(--color-accent-rgb), 0.85) 100%);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 10px rgba(var(--color-accent-rgb), 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--color-accent-rgb), 0.35);
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.9) 0%, var(--color-accent) 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-accent);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-text:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
}

/* ==========================================================================
   DASHBOARD WRAPPER & SIDEBAR
   ========================================================================== */
/* Hide mobile bottom nav by default in desktop */
.mobile-bottom-nav {
  display: none;
}

.dashboard-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  height: 48px;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cabor-selector-container {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-secondary);
  pointer-events: none;
}

.sidebar-nav {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-item:hover {
  background-color: rgba(var(--color-accent-rgb), 0.05);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: rgba(var(--color-accent-rgb), 0.08);
  color: var(--color-accent);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background-color: var(--color-accent);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.badge-count {
  margin-left: auto;
  background-color: var(--color-red);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-user {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  background-color: rgba(15, 23, 42, 0.015);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-grow: 1;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-btn:hover {
  color: var(--color-red);
  background-color: rgba(239, 68, 68, 0.08);
}

.logout-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* ==========================================================================
   MAIN CONTENT & HEADER
   ========================================================================== */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.app-header {
  height: var(--header-height);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-sidebar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 90;
  flex-shrink: 0;
}

.header-title h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.header-title p {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.date-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
}

.theme-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.theme-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.content-body {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
  background-color: var(--bg-primary);
}

.tab-panel {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-fast);
}

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

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrapper svg {
  width: 1.6rem;
  height: 1.6rem;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-details h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0.15rem 0;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.grid-span-4 { grid-column: span 4; }
.grid-span-5 { grid-column: span 5; }
.grid-span-6 { grid-column: span 6; }
.grid-span-7 { grid-column: span 7; }
.grid-span-8 { grid-column: span 8; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.section-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 700px;
}

/* ==========================================================================
   TABLES STYLING
   ========================================================================== */
.table-container {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-color);
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: rgba(var(--color-accent-rgb), 0.015);
}

/* Attendance options styling */
.attendance-toggle-group {
  display: flex;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  padding: 2px;
  width: fit-content;
  margin: 0 auto;
}

.attendance-toggle-btn {
  border: none;
  background: transparent;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.attendance-toggle-btn:hover {
  color: var(--text-primary);
}

.attendance-toggle-btn[data-status="H"] {
  accent-color: var(--color-green);
}
.attendance-toggle-btn[data-status="H"].active {
  background-color: var(--color-green);
  color: var(--color-white);
}

.attendance-toggle-btn[data-status="S"] {
  accent-color: var(--color-cyan);
}
.attendance-toggle-btn[data-status="S"].active {
  background-color: var(--color-cyan);
  color: var(--color-white);
}

.attendance-toggle-btn[data-status="I"] {
  accent-color: var(--color-orange);
}
.attendance-toggle-btn[data-status="I"].active {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.attendance-toggle-btn[data-status="A"] {
  accent-color: var(--color-red);
}
.attendance-toggle-btn[data-status="A"].active {
  background-color: var(--color-red);
  color: var(--color-white);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* ==========================================================================
   AGENDA & LISTS (DASHBOARD WIDGETS)
   ========================================================================== */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background-color: rgba(var(--color-accent-rgb), 0.02);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  transition: transform var(--transition-fast);
}

.agenda-item:hover {
  transform: translateX(4px);
}

.agenda-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  background-color: rgba(var(--color-accent-rgb), 0.08);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

.agenda-details {
  flex-grow: 1;
}

.agenda-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.agenda-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.critical-issues-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.issue-item-summary {
  padding: 0.85rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background-color: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border-color);
}

.issue-item-summary.priority-tinggi {
  border-left: 3px solid var(--color-red);
}

.issue-item-summary.priority-sedang {
  border-left: 3px solid var(--color-orange);
}

.issue-item-summary.priority-rendah {
  border-left: 3px solid var(--color-cyan);
}

.issue-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.issue-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background-color: rgba(15, 23, 42, 0.01);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
}

.ranking-name {
  font-weight: 600;
  color: var(--text-secondary);
}

.ranking-score {
  font-weight: 700;
  color: var(--color-accent-light);
}

/* ==========================================================================
   CHARTS & METRICS VISUALIZATION
   ========================================================================== */
.overview-chart-container {
  padding: 0.5rem 0;
}

.chart-flex {
  display: flex;
  gap: 1.5rem;
}

.chart-pane {
  flex-grow: 1;
  max-width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-legend-pane {
  flex-grow: 1;
  max-width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-hint {
  padding: 0.85rem;
  background-color: rgba(var(--color-accent-rgb), 0.03);
  border: 1px dashed rgba(var(--color-accent-rgb), 0.2);
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.chart-container-large {
  position: relative;
  width: 100%;
  height: 220px;
}

.progress-radar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.evaluation-panel {
  display: flex;
  flex-direction: column;
}

.alert-info-box {
  padding: 1rem;
  background-color: rgba(var(--color-accent-rgb), 0.05);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.alert-info-box strong {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

/* Custom Progress Bar in tables */
.custom-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.custom-progress-track {
  flex-grow: 1;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.custom-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.custom-progress-fill.status-low {
  background: var(--color-red);
}
.custom-progress-fill.status-medium {
  background: var(--color-orange);
}
.custom-progress-fill.status-high {
  background: var(--color-green);
}

.progress-label-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

/* ==========================================================================
   PROGRAM CARDS
   ========================================================================== */
.program-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.prog-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.prog-meta-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.prog-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  padding: 0.85rem;
  background-color: rgba(15, 23, 42, 0.015);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.prog-info-item {
  display: flex;
  flex-direction: column;
}

.prog-info-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.prog-info-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.prog-details h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prog-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.prog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
}

/* ==========================================================================
   JADWAL (WEEKLY SCHEDULE)
   ========================================================================== */
.weekly-schedule-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* Mon to Sat */
  gap: 1rem;
}

.weekly-day-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 250px;
}

.weekly-day-header {
  padding: 0.65rem;
  background-color: rgba(var(--color-accent-rgb), 0.08);
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.schedule-card-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.schedule-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--text-muted);
}

.schedule-card-time {
  font-weight: 700;
  color: var(--color-accent);
}

.schedule-card-focus {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.schedule-card-venue {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.schedule-card-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.schedule-card-item:hover .schedule-card-delete {
  opacity: 1;
}

.schedule-card-delete:hover {
  color: var(--color-red);
}

/* ==========================================================================
   HAMBATAN & KENDALA CARDS
   ========================================================================== */
.obstacle-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.obs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.obs-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.obs-meta-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.obs-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background-color: rgba(15, 23, 42, 0.01);
  padding: 0.85rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.obs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
}

.obs-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.obs-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 4px;
}

/* Filter pills */
.filter-pills {
  display: flex;
  gap: 0.5rem;
}

.pill-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.pill-btn.active {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 8px rgba(var(--color-accent-rgb), 0.15);
}

/* ==========================================================================
   MODALS LAYOUT
   ========================================================================== */
.modal-wrapper {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-content {
  width: 100%;
  max-width: 580px;
  background-color: var(--bg-modal);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  position: relative;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  max-height: 90vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.close-modal-btn:hover {
  color: var(--color-red);
}

.form-control-input,
.form-control-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-control-input:focus,
.form-control-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb), 0.15);
}

.form-control-textarea {
  resize: vertical;
}

.split-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#form-tambah-program .form-group,
#form-tambah-jadwal .form-group,
#form-tambah-hambatan .form-group,
#form-update-progres .form-group {
  margin-bottom: 1.25rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

/* Control bar styling in attendance tab */
.control-bar {
  padding: 1.25rem;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .grid-span-4, .grid-span-5, .grid-span-6, .grid-span-7, .grid-span-8 {
    grid-column: span 12;
  }
  .weekly-schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .chart-flex {
    flex-direction: column;
  }
  .chart-pane, .chart-legend-pane {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* ===== MOBILE: DASHBOARD LAYOUT ===== */
  body {
    flex-direction: column;
  }

  /* Sembunyikan sidebar desktop di mobile */
  .sidebar {
    display: none;
  }

  /* Sidebar jadi drawer overlay (dikontrol JS) */
  .sidebar.mobile-open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 320px;
    height: 100vh;
    z-index: 1100;
    flex-direction: column;
    animation: slideInLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  @keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
  }

  /* Overlay gelap saat drawer terbuka */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1050;
    backdrop-filter: blur(2px);
    touch-action: none;
  }

  .sidebar-overlay.visible {
    display: block;
    animation: fadeOverlay 0.25s ease;
  }

  @keyframes fadeOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* ===== MOBILE HEADER ===== */
  .app-header {
    height: 60px;
    padding: 0 1rem;
  }

  .header-title h2 {
    font-size: 1.1rem;
  }

  .header-title p {
    font-size: 0.75rem;
    display: none; /* sembunyikan subtitle di mobile */
  }

  /* Tombol hamburger — muncul di mobile */
  #mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    order: -1; /* letakkan di paling kiri */
    margin-right: 0.5rem;
    /* Touch optimization */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }

  #mobile-menu-btn svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  /* Sembunyikan date badge agar header tidak penuh */
  .date-badge {
    display: none;
  }

  .header-actions {
    gap: 0.6rem;
  }

  /* ===== MAIN CONTENT ===== */
  .main-content {
    height: 100vh;
    flex-direction: column;
  }

  .content-body {
    padding: 1rem;
    padding-bottom: 80px; /* ruang untuk bottom nav */
    overflow-y: auto;
  }

  /* ===== BOTTOM NAVIGATION BAR ===== */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 950;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.15);
    padding: 0 0.25rem;
    align-items: stretch;
    justify-content: space-around;
    isolation: isolate;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 0.5rem 0.25rem;
    font-family: var(--font-family);
    position: relative;
    border-radius: var(--border-radius-sm);
    /* Touch optimization */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    min-height: 44px; /* Minimum touch target size */
  }

  .mobile-nav-item.active {
    color: var(--color-accent);
  }

  .mobile-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 3px 3px 0 0;
  }

  .mobile-nav-item svg {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
  }

  .mobile-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .mobile-nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 16px);
    background-color: var(--color-red);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ===== STATS GRID — 2 KOLOM ===== */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .stat-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-icon-wrapper {
    width: 42px;
    height: 42px;
  }

  .stat-icon-wrapper svg {
    width: 1.3rem;
    height: 1.3rem;
  }

  /* ===== GRID SPANS — SATU KOLOM ===== */
  .split-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .grid-span-4, .grid-span-5, .grid-span-6,
  .grid-span-7, .grid-span-8 {
    grid-column: span 12;
  }

  /* ===== CARDS ===== */
  .card {
    padding: 1rem;
  }

  .card-header h2 {
    font-size: 0.95rem;
  }

  /* ===== TABEL — HORIZONTAL SCROLL ===== */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table th,
  .data-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Sembunyikan kolom lebar di mobile */
  .w-180, .w-200 {
    width: auto;
  }

  /* ===== ATTENDANCE TOGGLE — LEBIH KECIL ===== */
  .attendance-toggle-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
  }

  /* ===== CHART ===== */
  .chart-flex {
    flex-direction: column;
  }

  .chart-pane, .chart-legend-pane {
    max-width: 100%;
  }

  /* ===== WEEKLY SCHEDULE ===== */
  .weekly-schedule-grid {
    grid-template-columns: 1fr;
  }

  /* ===== SECTION ACTION ROW ===== */
  .section-actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .section-actions-row .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* ===== CARDS GRID ===== */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* ===== SPLIT INPUTS ===== */
  .split-inputs {
    grid-template-columns: 1fr;
  }

  /* ===== MODAL ===== */
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
  }

  .modal-wrapper {
    align-items: flex-end;
  }

  /* ===== LOGIN PAGE ===== */
  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-logo {
    height: 65px;
  }

  /* ===== FILTER PILLS ===== */
  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .pill-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ===== CONTROL BAR ===== */
  .control-row {
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch;
  }

  .control-actions {
    width: 100%;
  }

  .control-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* ===== HEADER TITLE ===== */
  .header-title {
    flex: 1;
    overflow: hidden;
  }

  .header-title h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ===== 480px: HP kecil ===== */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .stat-card {
    padding: 0.85rem;
    gap: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .content-body {
    padding: 0.85rem;
    padding-bottom: 80px;
  }

  .auth-header h2 {
    font-size: 1.3rem;
  }

  .modal-content {
    padding: 1.25rem;
  }
}

/* Accessible Visually Hidden inputs fallback (for @supports not) */
@supports not (accent-color: var(--color-accent)) {
  .attendance-toggle-btn {
    border: 1px solid var(--border-color) !important;
  }
}

/* ==========================================================================
   CLOUD SYNC STATUS (GOOGLE SHEETS)
   ========================================================================== */
.sync-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  transition: all var(--transition-normal);
}

.sync-dot.offline {
  background-color: var(--text-muted);
  box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.4);
}

.sync-dot.online {
  background-color: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ==========================================================================
   CABOR DASHBOARD CARD STYLES
   ========================================================================== */
.cabor-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.cabor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.cabor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.cabor-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.cabor-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
  white-space: nowrap;
}

.cabor-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.cabor-progress-bar {
  background-color: var(--border-color);
  height: 4px;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.cabor-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-orange), var(--color-cyan));
}

/* ==========================================================================
   PRINT MEDIA STYLES (MONITORING FORM)
   ========================================================================== */
@media print {
  /* Sembunyikan semua elemen default dari layout aplikasi */
  body, html {
    background: #fff !important;
    color: #000 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  body * {
    visibility: hidden;
  }

  /* Tampilkan hanya bagian form cetak saja */
  .print-only-container, .print-only-container * {
    visibility: visible;
  }

  .print-only-container {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    background: #fff !important;
    color: #000 !important;
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 11.5pt;
    line-height: 1.5;
    padding: 0;
    margin: 0;
  }

  /* Hilangkan sidebar, header, bottom nav, modal, dll */
  .sidebar, .main-content, .app-header, .mobile-bottom-nav, .modal-wrapper, #sidebar-overlay {
    display: none !important;
  }

  @page {
    size: A4;
    margin: 1.5cm 2cm 1.5cm 2cm;
  }
}

