/* =========================================================
   DESIGN SYSTEM - SMKN 1 PADAHERANG ATTENDANCE APP
   Mobile-First, Modern, High Aesthetics, Responsive
   ========================================================= */

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

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Brand Colors */
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  
  --secondary: #1e293b;
  --secondary-light: #334155;

  /* Status Colors */
  --status-hadir: #10b981;
  --status-hadir-bg: #ecfdf5;
  --status-hadir-border: #a7f3d0;
  --status-hadir-text: #065f46;

  --status-izin: #3b82f6;
  --status-izin-bg: #eff6ff;
  --status-izin-border: #bfdbfe;
  --status-izin-text: #1e40af;

  --status-sakit: #f59e0b;
  --status-sakit-bg: #fffbeb;
  --status-sakit-border: #fde68a;
  --status-sakit-text: #92400e;

  --status-alfa: #ef4444;
  --status-alfa-bg: #fef2f2;
  --status-alfa-border: #fecaca;
  --status-alfa-text: #991b1b;

  --status-terlambat: #8b5cf6;
  --status-terlambat-bg: #f5f3ff;
  --status-terlambat-border: #ddd6fe;
  --status-terlambat-text: #5b21b6;

  /* Neutral Colors */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 140px; /* Space for sticky bottom bar on mobile */
}

/* Container */
.app-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px;
}

/* App Header */
.app-header {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: white;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.app-header::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

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

.school-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.btn-header-admin {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-header-admin:hover, .btn-header-admin.active {
  background: white;
  color: #065f46;
}

.header-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.95;
}

.session-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.session-indicator.active {
  background: #10b981;
  color: white;
}

.session-indicator.inactive {
  background: #ef4444;
  color: white;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Closed Session State View */
.closed-state-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-top: 20px;
}

.closed-icon-wrapper {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.closed-state-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.closed-state-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 20px;
}

/* Quick Action / Toolbar */
.toolbar-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.toolbar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .toolbar-grid {
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.form-control {
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--bg-muted);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  min-height: 44px; /* Finger touch size */
}

.form-control:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Bulk Button */
.btn-bulk-hadir {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  min-height: 44px;
}

.btn-bulk-hadir:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

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

/* Filter Navigation */
.filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none; /* Firefox */
}

.filter-bar::-webkit-scrollbar {
  display: none; /* Chrome */
}

.filter-pill {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.filter-pill .badge-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.filter-pill.active .badge-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Search input */
.search-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: white;
  outline: none;
  min-height: 44px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

/* Card List */
.teacher-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teacher-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.teacher-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.teacher-card.card-hadir {
  border-left: 5px solid var(--status-hadir);
}

.teacher-card.card-izin {
  border-left: 5px solid var(--status-izin);
  background: #fbfdff;
}

.teacher-card.card-sakit {
  border-left: 5px solid var(--status-sakit);
  background: #fffdfa;
}

.teacher-card.card-alfa {
  border-left: 5px solid var(--status-alfa);
  background: #fffafa;
}

.teacher-card.card-terlambat {
  border-left: 5px solid var(--status-terlambat);
  background: #fcfaff;
}

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

.class-badge {
  background: #0f172a;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.teacher-num {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.teacher-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

/* Status Button Group - Mobile Friendly */
.status-btn-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.btn-status {
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--bg-muted);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-status:active {
  transform: scale(0.96);
}

/* Status Selected Styles */
.btn-status.btn-hadir.selected {
  background: var(--status-hadir);
  color: white;
  border-color: var(--status-hadir);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.btn-status.btn-izin.selected {
  background: var(--status-izin);
  color: white;
  border-color: var(--status-izin);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
}

.btn-status.btn-sakit.selected {
  background: var(--status-sakit);
  color: white;
  border-color: var(--status-sakit);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.btn-status.btn-alfa.selected {
  background: var(--status-alfa);
  color: white;
  border-color: var(--status-alfa);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.btn-status.btn-terlambat.selected {
  background: var(--status-terlambat);
  color: white;
  border-color: var(--status-terlambat);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.35);
}

/* Assignment / Extra Details Tag inside Card */
.card-extra-details {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.details-izin-sakit {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
}

.badge-has-assignment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.badge-has-assignment.yes {
  background: #dcfce7;
  color: #166534;
}

.badge-has-assignment.no {
  background: #fee2e2;
  color: #991b1b;
}

.btn-edit-note {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Sticky Bottom Action Bar */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  z-index: 90;
}

.sticky-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Stack vertically on mobile so the button is below! */
  gap: 8px;
}

.progress-info {
  width: 100%;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.progress-track {
  height: 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-stats-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.btn-submit-main {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center; /* Center icon & text */
  gap: 8px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transition: all 0.2s ease;
  width: 100%; /* Full width on mobile! */
  min-height: 46px;
}

.btn-submit-main:hover {
  background: #047857;
  transform: translateY(-1px);
}

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

@media (min-width: 768px) {
  body {
    padding-bottom: 90px;
  }
  .sticky-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .progress-info {
    flex: 1;
  }
  .progress-stats-mini {
    justify-content: flex-start;
    gap: 12px;
  }
  .btn-submit-main {
    width: auto;
    min-width: 200px;
  }
}

/* MODAL SYSTEM */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.2s ease;
  padding: 20px;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-close-modal {
  background: var(--bg-muted);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Radio Button Cards inside Modal */
.radio-card-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.radio-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-surface);
}

.radio-card:hover {
  border-color: var(--border-strong);
}

.radio-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.radio-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  display: block;
}

.radio-card.selected .radio-card-title {
  color: var(--primary-hover);
}

.radio-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* ADMIN PANEL */
.admin-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toggle Switch */
.switch-control-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-muted);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.switch-label-group h4 {
  font-size: 1rem;
  font-weight: 700;
}

.switch-label-group p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 32px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

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

.stat-box {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.stat-box.box-hadir { border-top: 4px solid var(--status-hadir); }
.stat-box.box-izin { border-top: 4px solid var(--status-izin); }
.stat-box.box-sakit { border-top: 4px solid var(--status-sakit); }
.stat-box.box-alfa { border-top: 4px solid var(--status-alfa); }
.stat-box.box-terlambat { border-top: 4px solid var(--status-terlambat); }

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Table Responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

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

.data-table th {
  background: var(--bg-muted);
  padding: 10px 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

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

/* Action Button Grid in Admin */
.admin-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.btn-action {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: white;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  min-height: 40px;
}

.btn-action:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
}

.btn-action-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.btn-action-whatsapp {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.btn-action-whatsapp:hover {
  background: #1eb857;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

@media (min-width: 640px) {
  .toast-container {
    left: auto;
    width: 360px;
  }
}

.toast {
  background: #1e293b;
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  pointer-events: auto;
}

.toast.toast-success { background: #065f46; border-left: 5px solid #10b981; }
.toast.toast-error { background: #7f1d1d; border-left: 5px solid #ef4444; }
.toast.toast-info { background: #1e3a8a; border-left: 5px solid #3b82f6; }

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

/* Print View Styles */
@media print {
  body {
    background: white !important;
    padding: 0 !important;
    color: black !important;
  }
  .app-header, .toolbar-card, .filter-bar, .search-wrapper, 
  .sticky-bottom-bar, .btn-action, .header-actions, .admin-card-header,
  .switch-control-wrapper, .toast-container, .modal-overlay, #petugasView {
    display: none !important;
  }
  #adminView, .print-only {
    display: block !important;
  }
  .print-kop {
    text-align: center;
    border-bottom: 2px solid black;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }
  .print-kop h1 {
    font-size: 16pt;
    margin-bottom: 2px;
  }
  .print-kop p {
    font-size: 10pt;
  }
  .data-table {
    border: 1px solid black !important;
    font-size: 9pt;
  }
  .data-table th, .data-table td {
    border: 1px solid #333 !important;
    padding: 4px 6px;
  }
  .print-signature-box {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    page-break-inside: avoid;
  }
  .signature-block {
    text-align: center;
    width: 240px;
  }
}

/* Piket Chips & Table Styles */
.piket-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-muted);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.piket-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.piket-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.piket-table tr {
  border-bottom: 1px solid var(--border-light);
}
.piket-table td {
  padding: 10px 14px;
  vertical-align: top;
}
.piket-table tr.piket-row-active {
  background: #e8f8ee !important;
}
.piket-table tr:nth-child(even):not(.piket-row-active) {
  background: #f4fbf6;
}

