/* ==========================================================================
   Web App Presensi Mengajar Dosen - Prodify Clean White & Dark Mode Theme
   Aesthetic: Clean Dominan Putih (Light Mode) & Obsidian Dark (Dark Mode)
   STIE Nasional Banjarmasin
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (LIGHT: CLEAN DOMINAN PUTIH | DARK: OBSIDIAN NAVY)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Accents */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-active: #4338ca;
  --primary-light: #eff1fe;
  --primary-subtle: #e0e4fc;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --primary-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  
  /* Status Colors */
  --success: #10b981;
  --success-light: #ecfdf5;
  --success-text: #065f46;
  --success-border: #a7f3d0;
  
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-text: #92400e;
  --warning-border: #fde68a;
  
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-text: #991b1b;
  --danger-border: #fecaca;
  
  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;
  
  /* Dimensions & Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-width: 275px;

  /* LIGHT THEME (DOMINAN PUTIH, ULTRA CLEAN PRODIFY AESTHETIC) */
  --bg-page: #f4f3fb;
  --bg-canvas: #ffffff;
  --card-bg: #ffffff;
  --card-elevated: #ffffff;
  --card-border: #eef0f6;
  --border: #edf0f7;
  --border-focus: #6366f1;
  
  --sidebar-bg: #ffffff;
  --sidebar-border: #edf0f7;
  --sidebar-text: #64748b;
  --sidebar-text-hover: #0f172a;
  --sidebar-active-bg: #f0f1fe;
  --sidebar-active-text: #4f46e5;
  
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --input-bg: #ffffff;
  --input-border: #e2e8f0;
  --surface-subtle: #f8f9fd;
  --table-header-bg: #f8f9fd;
  --table-hover-bg: #fafbff;
  --grid-line-color: rgba(99, 102, 241, 0.05);

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.03);
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 16px 38px -6px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
  --shadow-xl: 0 24px 50px -12px rgba(99, 102, 241, 0.1);
}

/* --------------------------------------------------------------------------
   DARK THEME (OBSIDIAN NAVY)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-page: #090d16;
  --bg-canvas: #0f172a;
  --card-bg: #121c30;
  --card-elevated: #16243d;
  --card-border: #1e293b;
  --border: #1e293b;
  --border-focus: #818cf8;
  
  --sidebar-bg: #0d1424;
  --sidebar-border: #1a2538;
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #ffffff;
  --sidebar-active-bg: rgba(99, 102, 241, 0.22);
  --sidebar-active-text: #a5b4fc;
  
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --input-bg: #152238;
  --input-border: #24334f;
  --surface-subtle: #152238;
  --table-header-bg: #17243c;
  --table-hover-bg: #1c2a46;
  --grid-line-color: rgba(255, 255, 255, 0.04);

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 38px -6px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 25px 55px -12px rgba(0, 0, 0, 0.7);
  
  --primary-light: rgba(99, 102, 241, 0.2);
  --success-light: rgba(16, 185, 129, 0.15);
  --success-text: #34d399;
  --success-border: rgba(16, 185, 129, 0.3);
  --warning-light: rgba(245, 158, 11, 0.15);
  --warning-text: #fbbf24;
  --warning-border: rgba(245, 158, 11, 0.3);
  --danger-light: rgba(239, 68, 68, 0.15);
  --danger-text: #f87171;
  --danger-border: rgba(239, 68, 68, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. FLOATING GLOBAL THEME SWITCHER
   -------------------------------------------------------------------------- */
.global-theme-switcher {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  background: var(--card-bg);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  gap: 3px;
}

.theme-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  line-height: 1.2;
}

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

.theme-mode-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.theme-toggle-btn {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--surface-subtle);
  color: var(--primary);
  transform: rotate(15deg) scale(1.05);
}

.theme-toggle-login-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 20;
}

.theme-toggle-banner {
  background: var(--surface-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & PILLS (PRODIFY STYLE)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
  user-select: none;
  line-height: 1.25;
}

.btn:active {
  transform: scale(0.98);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.38);
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--surface-subtle);
  border-color: #cbd5e1;
  color: var(--text-main);
  transform: translateY(-1px);
}

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

.btn-outline-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.btn-success:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.38);
}

.btn-danger {
  background: var(--card-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.btn-danger:hover {
  background-color: var(--danger);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.28);
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-xs);
  gap: 0.4rem;
}

.btn-sm.btn-pill {
  border-radius: var(--radius-pill);
}

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

/* --------------------------------------------------------------------------
   5. STATUS BADGES & TAGS
   -------------------------------------------------------------------------- */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-status.connected {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.badge-status.local {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.4;
  animation: pulsePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulsePing {
  0% { transform: scale(1); opacity: 0.8; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.badge-class {
  background: #ede9fe;
  color: #6366f1;
  border: 1px solid #ddd6fe;
}

[data-theme="dark"] .badge-class {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.4);
}

.badge-luring {
  background: var(--success-light);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.badge-daring {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   6. VIEW CONTAINERS & ANIMATIONS
   -------------------------------------------------------------------------- */
.main-wrapper {
  max-width: 1180px;
  margin: 1.75rem auto 2.5rem auto;
  padding: 0 1.25rem;
}

.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.view-section.active {
  display: block;
  opacity: 1;
  animation: fadeInView 0.35s ease forwards;
}

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

/* --------------------------------------------------------------------------
   7. VIEW 1: FORM ABSEN DOSEN (PANEL PRESENSI - DOMINAN PUTIH)
   -------------------------------------------------------------------------- */
.form-hero-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: background-color var(--transition);
}

/* Form Header Banner: Clean Dominan Putih with Blueprint Grid Pattern */
.form-header-banner {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  padding: 2.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.form-header-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  pointer-events: none;
}

.form-header-content {
  position: relative;
  z-index: 2;
}

.form-header-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--text-main);
}

.form-header-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
}

/* Auth Banners on Form */
.auth-notice-banner {
  margin: 1.5rem 2.5rem 0.5rem 2.5rem;
  padding: 1.1rem 1.4rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-main);
  font-size: 0.9rem;
  box-shadow: var(--shadow-xs);
}

.auth-notice-banner > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.5;
}

.auth-notice-banner i {
  color: var(--primary);
  font-size: 1.15rem;
}

.auth-success-banner {
  margin: 1.5rem 2.5rem 0.5rem 2.5rem;
  padding: 1.1rem 1.4rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-main);
  font-size: 0.9rem;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
}

.auth-success-banner > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
}

.auth-success-banner i.fa-circle-check {
  color: var(--success);
  font-size: 1.15rem;
}

/* Form Body */
.form-body {
  padding: 2rem 2.5rem 2.5rem 2.5rem;
}

.form-section-divider {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.25rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.6rem;
}

.col-span-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.form-label .required {
  color: var(--danger);
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-wrapper > i:first-child {
  position: absolute;
  left: 1.1rem;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.input-icon-wrapper:focus-within > i:first-child {
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1.1rem 0.75rem 2.75rem;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
  min-height: 46px;
}

.form-control.no-icon {
  padding-left: 1.1rem;
}

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

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  padding: 0.85rem 1.1rem;
  resize: vertical;
  min-height: 105px;
  line-height: 1.6;
}

.form-control.locked-input {
  background-color: var(--surface-subtle);
  cursor: not-allowed;
  font-weight: 600;
  color: var(--text-main);
}

.locked-badge-notice {
  font-size: 0.74rem;
  color: var(--success);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

/* Radio Cards (Luring/Daring) */
.radio-cards-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.radio-card-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: var(--transition);
  user-select: none;
  box-shadow: var(--shadow-xs);
}

.radio-card-label:hover {
  background-color: var(--surface-subtle);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.radio-card-label input[type="radio"] {
  display: none;
}

.radio-card-label.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary-glow), var(--shadow-sm);
}

.radio-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

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

.radio-card-label.selected .radio-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.radio-content {
  display: flex;
  flex-direction: column;
}

.radio-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.radio-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Time Range Box */
.time-range-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
}

.time-separator {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.84rem;
  background: var(--surface-subtle);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   8. VIEW 2: LOGIN PORTAL (ADMIN & DOSEN - CLEAN WHITE CARD)
   -------------------------------------------------------------------------- */
#view-login.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
  background: var(--bg-page);
  position: relative;
}

.login-container {
  width: 100%;
  max-width: 440px;
  margin: auto;
  position: relative;
  z-index: 10;
}

.login-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: var(--transition);
}

.login-header {
  text-align: center;
  padding: 2.25rem 2rem 1.5rem 2rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.login-header-logo {
  width: 78px;
  height: auto;
  display: block;
  margin: 0 auto 0.85rem auto;
  filter: drop-shadow(0 6px 14px rgba(99, 102, 241, 0.22));
}

.login-header-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface-subtle);
  color: var(--primary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.4rem;
  border: 1px solid var(--border);
}

.login-header h1 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.3;
}

.login-subtitle {
  font-size: 0.86rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 0.35rem;
}

.login-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.5rem;
  background: var(--surface-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.login-body {
  padding: 2rem 2rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.btn-toggle-password {
  position: absolute;
  right: 0.85rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 3;
}

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

.login-feature-chips {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.login-chip-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}

.login-chip-item i {
  color: var(--success);
}

/* --------------------------------------------------------------------------
   9. VIEW 3: ADMIN DASHBOARD (PRODIFY CLEAN WHITE CANVAS)
   -------------------------------------------------------------------------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-page);
  position: relative;
  padding: 0.75rem;
  gap: 0.85rem;
}

/* Mobile Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* Sidebar Prodify Style: Pure Clean White */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0.75rem;
  height: calc(100vh - 1.5rem);
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), background-color var(--transition);
}

.sidebar-header {
  padding: 1.4rem 1.25rem 1rem 1.25rem;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.sidebar-user:hover {
  background: var(--surface-subtle);
}

.sidebar-user-info-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
  position: relative;
}

.sidebar-avatar-status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--success);
  border: 2px solid var(--sidebar-bg);
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.nav-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 800;
  padding: 0.85rem 0.75rem 0.35rem 0.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.68rem 0.95rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.sidebar-link i {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.sidebar-link:hover {
  background: var(--surface-subtle);
  color: var(--sidebar-text-hover);
}

.sidebar-link:hover i {
  color: var(--primary);
}

.sidebar-link.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 700;
}

.sidebar-link.active i {
  color: var(--primary);
}

/* Prodify Sidebar Bottom Banner Card */
.sidebar-prodify-card {
  margin: 0.75rem;
  padding: 1.15rem 1rem;
  min-width: 0;
  box-sizing: border-box;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #a855f7 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}

.sidebar-prodify-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.sidebar-prodify-icon {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: #fef08a;
}

.sidebar-prodify-title {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: clamp(0.9rem, 4vw, 0.98rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sidebar-prodify-desc {
  position: relative;
  z-index: 1;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: normal;
}

.btn-sidebar-sync {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  width: 100%;
  background: #ffffff;
  color: #4f46e5;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-sidebar-sync:hover {
  background: #f8faff;
  transform: translateY(-1px);
}

.sidebar-footer {
  padding: 0.75rem 1rem 1rem 1rem;
  border-top: 1px solid var(--sidebar-border);
  text-align: center;
}

/* Admin Main Content Container (Pure Clean White Canvas) */
.admin-content {
  flex: 1;
  background: var(--bg-canvas);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  padding: 1.5rem 1.85rem;
  overflow-y: auto;
  min-width: 0;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition);
}

/* Admin Tab Panels: hanya tampilkan tab yang aktif */
.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
  animation: fadeInView 0.3s ease forwards;
}

/* Admin Topbar */
.admin-topbar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.15rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  gap: 1rem;
  flex-wrap: wrap;
}

.mobile-sidebar-toggle {
  display: none;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-xs);
}

/* --------------------------------------------------------------------------
   10. PRODIFY DASHBOARD HERO & STATS (TAB 1)
   -------------------------------------------------------------------------- */
.dash-hero-banner {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2rem 2.25rem 2.25rem 2.25rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

/* Blueprint Grid Pattern */
.dash-hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  pointer-events: none;
}

.dash-hero-content {
  position: relative;
  z-index: 2;
}

.dash-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.dash-hero-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1.25;
}

.dash-hero-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: #06b6d4;
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.35rem;
  margin-bottom: 1.35rem;
}

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

/* 4 Bento Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.stat-card-prodify {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 1.15rem;
  transition: var(--transition);
  position: relative;
}

.stat-card-prodify:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

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

.stat-card-prodify:hover .stat-icon-wrapper {
  transform: scale(1.08);
}

.stat-icon-wrapper.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.stat-icon-wrapper.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.stat-icon-wrapper.purple {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.stat-icon-wrapper.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.stat-card-details {
  flex: 1;
}

.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
}

.stat-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.badge-tag-subtle {
  background: var(--surface-subtle);
  color: var(--text-muted);
}

.badge-tag-today {
  background: rgba(16, 185, 129, 0.14);
  color: var(--success);
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Bento 2-Column Section (Prodify Layout) */
.dash-bento-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.35rem;
  margin-bottom: 2rem;
  align-items: start;
}

.bento-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: var(--transition);
}

.bento-card:hover {
  box-shadow: var(--shadow-sm);
}

.bento-header {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.bento-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.bento-body {
  padding: 1.25rem 1.4rem;
}

/* Prodify Goals / Progress Item Widget */
.goal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.goal-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.goal-info {
  flex: 1;
}

.goal-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.goal-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.goal-progress-wrap {
  width: 140px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.goal-progress-track {
  flex: 1;
  height: 6px;
  background: var(--surface-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.goal-progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
}

.goal-progress-bar.cyan { background: #06b6d4; }
.goal-progress-bar.amber { background: #f59e0b; }
.goal-progress-bar.purple { background: #8b5cf6; }

.goal-pct {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  width: 32px;
  text-align: right;
}

/* Prodify Projects List / Kelas Widget */
.project-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
}

.project-item:hover {
  background: var(--surface-subtle);
}

.project-shape-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.project-shape-icon.purple { background: linear-gradient(135deg, #a855f7, #6366f1); }
.project-shape-icon.blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.project-shape-icon.teal { background: linear-gradient(135deg, #14b8a6, #10b981); }
.project-shape-icon.rose { background: linear-gradient(135deg, #f43f5e, #fb7185); }

.project-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.project-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Prodify Calendar Strip Widget */
.calendar-days-strip {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  background: var(--surface-subtle);
  padding: 0.45rem;
  border-radius: var(--radius-md);
}

.cal-day-cell {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.cal-day-cell .cal-num {
  font-size: 0.9rem;
  font-weight: 800;
  display: block;
  margin-top: 0.1rem;
}

.cal-day-cell.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
}

.cal-meeting-card {
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
}

.cal-meeting-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.cal-meeting-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   11. TABLES, TOOLBARS & MASTER DATA (MONITORING & ADMIN TABS)
   -------------------------------------------------------------------------- */
.card-table-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  margin-bottom: 2rem;
}

.table-toolbar {
  padding: 1.15rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--card-bg);
}

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

.table-search-input {
  padding: 0.55rem 0.85rem 0.55rem 2.35rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  outline: none;
  font-family: inherit;
  width: 250px;
  transition: var(--transition);
  background-color: var(--input-bg);
  color: var(--text-main);
}

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

.table-select-filter {
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  background: var(--input-bg);
  outline: none;
  font-family: inherit;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.table-select-filter:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

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

.modern-table th {
  background-color: var(--table-header-bg);
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.95rem 1.25rem;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modern-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
  transition: background-color 0.15s ease;
}

.modern-table tbody tr:hover td {
  background-color: var(--table-hover-bg);
}

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

.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3.2rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.empty-state-desc {
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   12. MODAL CETAK REKAP LAPORAN BULANAN
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 1150px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.modal-header-bar {
  padding: 1.25rem 1.75rem;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal-toolbar {
  padding: 1rem 1.75rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.modal-body-preview {
  padding: 2.25rem;
  overflow-y: auto;
  background: #cbd5e1;
}

[data-theme="dark"] .modal-body-preview {
  background: #1e293b;
}

.paper-sheet {
  background: #ffffff;
  max-width: 950px;
  margin: 0 auto;
  padding: 2.75rem 3.25rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

.kop-surat {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px double #0f172a;
  margin-bottom: 1.5rem;
}

.kop-logo {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.kop-text {
  flex: 1;
  text-align: center;
}

.kop-instansi {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
  line-height: 1.2;
}

.kop-subinstansi {
  font-size: 0.94rem;
  font-weight: 700;
  color: #334155;
  margin-top: 0.2rem;
}

.kop-alamat {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.laporan-title-block {
  text-align: center;
  margin-bottom: 1.5rem;
}

.laporan-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.laporan-periode {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4f46e5;
  background: #eff1fe;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  border: 1px solid #c7d2fe;
}

.rekap-summary-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.rekap-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  text-align: center;
}

.rekap-box-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e293b;
}

.rekap-box-lbl {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.laporan-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.laporan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-bottom: 1.75rem;
}

.laporan-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  border: 1px solid #94a3b8;
  padding: 7px 8px;
  text-align: left;
}

.laporan-table td {
  border: 1px solid #cbd5e1;
  padding: 6px 8px;
  color: #1e293b;
  vertical-align: middle;
}

.laporan-table tr:nth-child(even) {
  background: #f8fafc;
}

.tanda-tangan-block {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   13. SWEETALERT2 STYLING
   -------------------------------------------------------------------------- */
.swal2-popup {
  background: var(--card-bg) !important;
  color: var(--text-main) !important;
  border-radius: var(--radius-lg) !important;
  font-family: inherit !important;
  box-shadow: var(--shadow-xl) !important;
  border: 1px solid var(--border) !important;
  padding: 1.75rem !important;
}

.swal2-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  letter-spacing: -0.02em !important;
}

.swal2-html-container {
  font-size: 0.92rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.6 !important;
}

.swal2-actions {
  gap: 0.75rem !important;
}

.swal2-confirm {
  background: var(--primary-gradient) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
}

.swal2-cancel {
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .dash-bento-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .admin-layout {
    padding: 0.5rem;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    border-radius: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar.open ~ .sidebar-backdrop,
  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
  }

  .admin-content {
    padding: 1.25rem 1rem;
  }

  .form-header-banner {
    padding: 1.75rem 1.5rem;
  }

  .form-body {
    padding: 1.75rem 1.5rem;
  }

  .auth-notice-banner,
  .auth-success-banner {
    margin: 1.25rem 1.5rem 0.25rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    margin-top: 1rem;
    padding: 0 0.75rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .col-span-2 {
    grid-column: span 1;
  }

  .form-section-divider {
    grid-column: span 1;
    margin-top: 0.75rem;
  }

  .radio-cards-group {
    grid-template-columns: 1fr;
  }

  .auth-notice-banner,
  .auth-success-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-notice-banner .btn,
  .auth-success-banner .btn {
    width: 100%;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .filter-group-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
  }

  .filter-group-wrap .input-icon-wrapper,
  .table-search-input {
    width: 100% !important;
    grid-column: 1 / -1;
  }

  .admin-tab [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .dash-hero-banner {
    padding: 1.5rem 1.25rem;
  }

  .dash-hero-actions .btn {
    width: 100%;
  }

  .modal-backdrop {
    padding: 0.5rem;
  }

  .modal-body-preview {
    padding: 1rem;
  }

  .paper-sheet {
    padding: 1.5rem;
  }

  .rekap-summary-boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .admin-sidebar {
    width: min(var(--sidebar-width), calc(100vw - 1rem));
  }

  .sidebar-prodify-card {
    margin: 0.65rem;
    padding: 1rem 0.85rem;
  }

  .form-header-title {
    font-size: 1.45rem;
  }

  .form-body {
    padding: 1.25rem 1rem;
  }

  .auth-notice-banner,
  .auth-success-banner {
    margin: 1rem 1rem 0 1rem;
    padding: 0.9rem 1rem;
  }

  .form-actions {
    flex-direction: column-reverse;
    gap: 0.65rem;
  }

  .form-actions .btn {
    width: 100%;
  }

  .time-range-box {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.35rem;
  }

  .filter-group-wrap {
    grid-template-columns: 1fr;
  }

  .admin-topbar-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .login-card {
    border-radius: var(--radius-lg);
  }

  .login-header {
    padding: 1.75rem 1.25rem 1.25rem 1.25rem;
  }

  .login-body {
    padding: 1.25rem 1.25rem 1.5rem 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   15. PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body * {
    visibility: hidden !important;
  }

  #modal-rekap-laporan,
  #modal-rekap-laporan #printable-paper-sheet,
  #modal-rekap-laporan #printable-paper-sheet * {
    visibility: visible !important;
  }

  #modal-rekap-laporan {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    opacity: 1 !important;
    z-index: 999999 !important;
  }

  .modal-content-card {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .modal-header-bar,
  .modal-toolbar,
  .no-print,
  .btn,
  .admin-sidebar,
  .global-theme-switcher {
    display: none !important;
  }

  .modal-body-preview {
    padding: 0 !important;
    background: white !important;
    overflow: visible !important;
  }

  .paper-sheet {
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    color: black !important;
  }

  .laporan-periode {
    background: transparent !important;
    border: 1px solid #000 !important;
    color: #000 !important;
  }

  .rekap-box {
    border: 1px solid #000 !important;
    background: transparent !important;
  }

  .rekap-box-val, .rekap-box-lbl {
    color: black !important;
  }

  .laporan-table th {
    background: #e2e8f0 !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .laporan-table td {
    border: 1px solid #000 !important;
    color: #000 !important;
  }

  .laporan-table tr:nth-child(even) {
    background: #f8fafc !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .kop-surat {
    border-bottom: 3px double #000 !important;
  }

  .kop-logo {
    background: #1e3a8a !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .laporan-table {
    page-break-inside: auto;
  }

  .laporan-table tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .tanda-tangan-block {
    page-break-inside: avoid;
  }
}
