/* custom.css - Stylesheet Kustom untuk SIAMI UIN Jurai Siwo Lampung */

/* Impor Font Modern Google Outfit dan Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

[v-cloak] {
  display: none !important;
}

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', sans-serif;
  
  /* Palette Warna Terkurasi (Light Mode Default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-color: #e2e8f0;
  
  --accent: #0284c7; /* Sky 600 */
  --accent-hover: #0369a1;
  --accent-light: #e0f2fe;
  
  --success: #10b981;
  --success-light: #d1fae5;
  --success-text: #065f46;
  
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-text: #92400e;
  
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --danger-text: #991b1b;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 12px;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-primary: #0b1329;
  --bg-secondary: #111c44;
  --bg-tertiary: #1b254b;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border-color: #1e293b;
  
  --accent: #38bdf8; /* Sky 400 */
  --accent-hover: #7dd3fc;
  --accent-light: rgba(56, 189, 248, 0.15);
  
  --success: #34d399;
  --success-light: rgba(52, 211, 153, 0.15);
  --success-text: #a7f3d0;
  
  --warning: #fbbf24;
  --warning-light: rgba(251, 191, 36, 0.15);
  --warning-text: #fde68a;
  
  --danger: #f87171;
  --danger-light: rgba(248, 113, 113, 0.15);
  --danger-text: #fecaca;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  
  --glass-bg: rgba(17, 28, 68, 0.75);
  --glass-border: rgba(30, 41, 59, 0.8);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* ============================================================
   DYNAMIC BACKGROUND PATTERN SYSTEM
   Controlled via CSS variables set in JS from admin settings
   ============================================================ */
:root {
  --bg-accent1: #e0f2fe;
  --bg-accent2: #ede9fe;
  --bg-accent3: #fce7f3;
  --banner-color1: #6366f1;
  --banner-color2: #8b5cf6;
  --banner-color3: #a855f7;
}

/* Pattern: Floating Orbs */
body[data-bg-pattern="orbs"] {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 600px 600px at 10% 15%, var(--bg-accent1) 0%, transparent 60%),
    radial-gradient(ellipse 500px 500px at 85% 25%, var(--bg-accent2) 0%, transparent 55%),
    radial-gradient(ellipse 450px 450px at 50% 80%, var(--bg-accent3) 0%, transparent 50%),
    radial-gradient(ellipse 300px 300px at 75% 70%, var(--bg-accent1) 0%, transparent 45%);
}

/* Pattern: Mesh Gradient */
body[data-bg-pattern="mesh"] {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(at 0% 0%, var(--bg-accent1) 0%, transparent 50%),
    radial-gradient(at 100% 0%, var(--bg-accent2) 0%, transparent 50%),
    radial-gradient(at 100% 100%, var(--bg-accent3) 0%, transparent 50%),
    radial-gradient(at 0% 100%, var(--bg-accent2) 0%, transparent 50%),
    radial-gradient(at 50% 50%, var(--bg-accent1) 0%, transparent 60%);
}

/* Pattern: Aurora */
body[data-bg-pattern="aurora"] {
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(135deg, var(--bg-accent1) 0%, transparent 40%),
    linear-gradient(225deg, var(--bg-accent2) 0%, transparent 40%),
    linear-gradient(315deg, var(--bg-accent3) 0%, transparent 35%),
    linear-gradient(45deg, var(--bg-accent1) 0%, transparent 30%);
}

/* Pattern: Waves */
body[data-bg-pattern="waves"] {
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(160deg, var(--bg-accent1) 0%, transparent 25%),
    linear-gradient(200deg, var(--bg-accent2) 0%, transparent 30%),
    linear-gradient(340deg, var(--bg-accent3) 0%, transparent 20%),
    repeating-linear-gradient(
      170deg,
      transparent,
      transparent 120px,
      var(--bg-accent1) 120px,
      transparent 240px
    );
}

/* Pattern: Radial Spotlight */
body[data-bg-pattern="spotlight"] {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle 900px at 20% 30%, var(--bg-accent1) 0%, transparent 55%),
    radial-gradient(circle 700px at 80% 60%, var(--bg-accent2) 0%, transparent 50%);
}

/* Pattern: Topography */
body[data-bg-pattern="topography"] {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 800px 400px at 0% 0%, var(--bg-accent1) 0%, transparent 55%),
    radial-gradient(ellipse 700px 350px at 100% 100%, var(--bg-accent2) 0%, transparent 50%),
    radial-gradient(ellipse 500px 250px at 50% 40%, var(--bg-accent3) 0%, transparent 40%),
    repeating-conic-gradient(
      var(--bg-primary) 0%, transparent 0.5%, var(--bg-primary) 1%
    );
}

/* Pattern: None/plain (fallback) */
body[data-bg-pattern="none"] {
  background-color: var(--bg-primary);
}

/* Dark Mode: reduce background pattern opacity */
[data-theme="dark"] body[data-bg-pattern="orbs"],
[data-theme="dark"] body[data-bg-pattern="mesh"],
[data-theme="dark"] body[data-bg-pattern="aurora"],
[data-theme="dark"] body[data-bg-pattern="waves"],
[data-theme="dark"] body[data-bg-pattern="spotlight"],
[data-theme="dark"] body[data-bg-pattern="topography"] {
  --bg-accent1: color-mix(in srgb, var(--banner-color1) 8%, var(--bg-primary));
  --bg-accent2: color-mix(in srgb, var(--banner-color2) 6%, var(--bg-primary));
  --bg-accent3: color-mix(in srgb, var(--banner-color3) 5%, var(--bg-primary));
}

/* ============================================================
   DYNAMIC WELCOME BANNER GRADIENT (Dashboard)
   ============================================================ */
.welcome-banner-gradient {
  background: linear-gradient(135deg, var(--banner-color1) 0%, var(--banner-color2) 50%, var(--banner-color3) 100%) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow-xl);
}

/* Custom Nav Link Style */
.nav-link-custom {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link-custom:hover, .nav-link-custom.router-link-active {
  color: var(--accent);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.2s ease, left 0.2s ease;
}

.nav-link-custom.router-link-active::after {
  width: 100%;
  left: 0;
}

/* Micro-animations */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary-custom {
  background-color: var(--accent);
  color: #ffffff !important;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-primary-custom:hover {
  background-color: var(--accent-hover);
}
.btn-primary-custom:active {
  transform: scale(0.98);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Custom Form Controls */
.form-input-custom {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input-custom:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
  outline: none;
}

/* Badge Styling */
.badge-observasi {
  background-color: var(--warning-light);
  color: var(--warning-text);
}
.badge-minor {
  background-color: var(--danger-light);
  color: var(--danger-text);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.badge-mayor {
  background-color: #7f1d1d;
  color: #fef2f2;
}
.badge-sesuai {
  background-color: var(--success-light);
  color: var(--success-text);
}


/* ============================================================
   REPORT LAYOUT CLASSES â€” SCREEN + PRINT SHARED
   ============================================================ */

/* Print card container */
.print-card {
  padding: 32px 40px;
}

/* Kop area */
.report-kop {
  margin-bottom: 12px;
}

/* Each section: generous spacing */
.report-section {
  margin-bottom: 20px;
}

/* Section heading */
.report-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 3px;
  margin-bottom: 6px;
}

/* Sub-section heading */
.report-subsection-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 4px;
  margin-top: 10px;
}

/* Body paragraph */
.report-desc {
  font-size: 10px;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 6px;
}

/* Shared table style */
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  color: #000;
  margin-bottom: 6px;
}
.report-table th,
.report-table td {
  border: 1px solid #000;
  padding: 4px 6px;
  vertical-align: top;
  line-height: 1.35;
}
.report-table th {
  background-color: #e5e7eb;
  font-weight: 700;
  text-align: center;
}

/* Empty state box */
.report-empty-box {
  border: 1px solid #000;
  padding: 10px;
  text-align: center;
  font-style: italic;
  font-size: 10px;
  color: #6b7280;
}

/* Photo grid */
.report-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.report-photo-item {
  border: 1px solid #000;
  padding: 6px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==============================================================
   SIGNATURE BLOCK SYSTEM
   â€” This wrapper prevents signatures from being cut by page breaks
   ============================================================== */
.report-signature-wrap {
  margin-top: 28px;
  /* Key: never break inside this block */
  break-inside: avoid;
  page-break-inside: avoid;
}
.report-signature-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}
.report-signer {
  text-align: center;
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #000;
}
.report-signer p {
  margin-bottom: auto;
  font-size: 10px;
  line-height: 1.3;
}
.report-signer-space {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.report-signer-name {
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
  font-weight: 700;
  width: 100%;
  text-align: center;
  font-size: 10px;
  margin-top: 4px;
}
.report-signer-nip {
  font-size: 9px;
  color: #374151;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
}

/* ==============================================================
   FORCE NEW PAGE â€” used only for RTL Form and Monitoring RTL
   ============================================================== */
.report-new-page {
  page-break-before: always;
  break-before: page;
}

#printArea > .report-section:first-child {
  page-break-before: avoid !important;
  break-before: avoid !important;
  margin-top: 0 !important;
}

/* ============================================================
   PRINT MEDIA QUERY
   ============================================================ */
@media print {
  @page {
    size: A4 portrait;
    margin: 15mm 15mm 15mm 20mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    font-size: 10px !important;
    font-family: 'Times New Roman', Times, serif !important;
    line-height: 1.4 !important;
  }

  /* Remove all decorative gradients from print */
  .welcome-banner-gradient,
  [class*="bg-gradient"],
  [style*="background-image"] {
    background-image: none !important;
  }

  /* Hide UI chrome */
  .no-print {
    display: none !important;
  }

  /* Print card: full width, no box shadow */
  .print-card {
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }

  main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  /* Headings never orphaned */
  h1, h2, h3, h4 {
    page-break-after: avoid !important;
    break-after: avoid !important;
    font-family: 'Times New Roman', Times, serif !important;
    color: #000 !important;
  }

  /* Report section title */
  .report-section-title {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  /* Tables: allow natural flow across pages */
  table, .report-table {
    border-collapse: collapse !important;
    width: 100% !important;
    page-break-inside: auto !important;
    font-size: 10px !important;
  }

  /* Repeat headers on each page */
  thead {
    display: table-header-group !important;
  }

  /* Individual rows: try not to break, but allow if table is long */
  tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  th, td {
    border: 1px solid #000000 !important;
    padding: 4px 5px !important;
    font-size: 10px !important;
    color: #000000 !important;
    vertical-align: top !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  th {
    background-color: #e0e0e0 !important;
    font-weight: bold !important;
    text-align: center !important;
  }

  /* KEY: Signature blocks NEVER break across pages */
  .report-signature-wrap {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-top: 24px !important;
  }

  /* RTL Form and Monitoring RTL start on their own pages */
  .report-new-page {
    page-break-before: always !important;
    break-before: page !important;
  }

  /* Photo grid on print */
  .report-photo-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .report-photo-item {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Legacy class kept for backwards compat */
  .print-page-break {
    page-break-before: always !important;
    break-before: page !important;
  }

  img {
    max-width: 100% !important;
  }

  p {
    orphans: 3;
    widows: 3;
  }
}

/* ============================================================
   PAGE TRANSITION ANIMATIONS
   ============================================================ */
.page-fade-enter-active {
  animation: pageFadeIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.page-fade-leave-active {
  animation: pageFadeOut 0.2s cubic-bezier(0.55, 0.09, 0.68, 0.53) both;
}
@keyframes pageFadeIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pageFadeOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* ============================================================
   SKELETON LOADING SYSTEM
   ============================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 25%,
    rgba(148, 163, 184, 0.12) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
}
.skeleton-text {
  height: 0.875rem;
  width: 100%;
  border-radius: 0.25rem;
}
.skeleton-text-sm {
  height: 0.625rem;
  width: 60%;
  border-radius: 0.25rem;
}
.skeleton-title {
  height: 1.5rem;
  width: 50%;
  border-radius: 0.375rem;
}
.skeleton-avatar {
  height: 3rem;
  width: 3rem;
  border-radius: 9999px;
}
.skeleton-card {
  height: 8rem;
  border-radius: 1rem;
}
.skeleton-stat {
  height: 6.5rem;
  border-radius: 1rem;
}
.skeleton-chart {
  height: 16rem;
  border-radius: 1rem;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   NOTIFICATION PANEL ANIMATIONS
   ============================================================ */
.notif-panel-enter {
  animation: notifSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes notifSlideDown {
  0% { opacity: 0; transform: translateY(-8px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Slide-down animation for dynamic content reveal */
.animate-slideDown {
  animation: contentSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes contentSlideDown {
  0% { opacity: 0; transform: translateY(-12px); max-height: 0; }
  100% { opacity: 1; transform: translateY(0); max-height: 800px; }
}
.notif-badge-pulse {
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ============================================================
   SWEETALERT2 CUSTOM THEME
   ============================================================ */
.swal2-popup {
  font-family: var(--font-sans) !important;
  border-radius: 1rem !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-xl) !important;
}
[data-theme="dark"] .swal2-popup {
  background: var(--bg-secondary) !important;
  border-color: #1e293b !important;
}
[data-theme="dark"] .swal2-title {
  color: #f8fafc !important;
}
[data-theme="dark"] .swal2-html-container {
  color: #94a3b8 !important;
}
.swal2-confirm {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
}
.swal2-cancel {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
}

/* ============================================================
   DASHBOARD PREMIUM CARD STYLES
   ============================================================ */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 1rem 1rem 0 0;
}
.stat-card-sky::before { background: linear-gradient(90deg, #0ea5e9, #6366f1); }
.stat-card-indigo::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.stat-card-rose::before { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.stat-card-amber::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.stat-card-emerald::before { background: linear-gradient(90deg, #10b981, #059669); }

.stat-icon-wrap {
  position: relative;
  z-index: 1;
}

/* ============================================================
   HORIZONTAL STEPPER / TIMELINE
   ============================================================ */
.stepper-horizontal {
  display: flex;
  align-items: flex-start;
  position: relative;
}
.stepper-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.stepper-step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}
.stepper-step:first-child::before {
  display: none;
}
.stepper-step.completed::before {
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}
.stepper-step.active::before {
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}
.stepper-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  font-size: 14px;
}
.stepper-step.completed .stepper-dot {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.stepper-step.active .stepper-dot {
  border-color: #0ea5e9;
  color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
  animation: stepperPulse 2s ease-in-out infinite;
}
.stepper-step.pending .stepper-dot {
  color: var(--text-muted);
}
@keyframes stepperPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.08); }
}

/* ============================================================
   QUICK ACTION GRID CARDS
   ============================================================ */
.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}
.quick-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.625rem;
  transition: transform 0.3s ease;
}
.quick-action-card:hover .quick-action-icon {
  transform: scale(1.1);
}

/* ============================================================
   AUTH PAGES - MODERN MINIMALIST & EDITORIAL (Login, Forgot & Reset)
   ============================================================ */

.auth-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: row;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: #fbfbfa;
  z-index: 9998;
  overflow: hidden;
}
[data-theme="dark"] .auth-page {
  background: #0b0f19;
}

/* --- Left Image / Editorial Panel --- */
.auth-image-panel {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  background: #090d16;
  border-right: 1px solid #eaeaea;
}
[data-theme="dark"] .auth-image-panel {
  border-right-color: #1e293b;
}
.auth-image-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(105%);
}
.auth-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.4) 0%, rgba(9, 13, 22, 0.3) 40%, rgba(9, 13, 22, 0.92) 100%);
  pointer-events: none;
}
.auth-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #090d16 0%, #111726 100%);
}
.auth-placeholder-content {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
}
.auth-placeholder-content i {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}
.auth-placeholder-content p {
  font-size: 0.8rem;
  line-height: 1.5;
}

/* --- Editorial Branding Overlay on Image --- */
.auth-image-branding {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 3.5rem 3rem;
  z-index: 2;
  pointer-events: none;
}
.auth-image-branding-inner {
  max-width: 480px;
}
.auth-branding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.auth-branding-badge i {
  color: #34d399;
}
.auth-branding-title {
  font-family: 'Newsreader', 'Instrument Serif', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.auth-branding-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* --- Mobile Header Bar --- */
.auth-mobile-branding {
  display: none;
}

/* --- Right Clean Form Panel --- */
.auth-form-panel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: stretch;
  overflow-y: auto;
  background: #fbfbfa;
}
[data-theme="dark"] .auth-form-panel {
  background: #0b0f19;
}

.auth-form-inner {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  z-index: 1;
}

/* Header */
.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
[data-theme="dark"] .auth-header {
  border-bottom-color: #1e293b;
}
.auth-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.65rem;
}
.auth-header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.auth-campus-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
[data-theme="dark"] .auth-campus-name {
  color: #f8fafc;
}
.auth-system-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: #787774;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Form Content */
.auth-form-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
[data-theme="dark"] .auth-title {
  color: #f8fafc;
}
.auth-subtitle {
  font-size: 0.78rem;
  color: #787774;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
[data-theme="dark"] .auth-subtitle {
  color: #94a3b8;
}

/* Labels */
.auth-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
[data-theme="dark"] .auth-label {
  color: #cbd5e1;
}

/* Alerts */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
  font-weight: 600;
}
.auth-alert i { margin-top: 0.15rem; flex-shrink: 0; }
.auth-alert-error { background: #fdebec; border: 1px solid #fecaca; color: #991b1b; }
[data-theme="dark"] .auth-alert-error { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.25); color: #fca5a5; }
.auth-alert-error i { color: #dc2626; }
.auth-alert-success { background: #edf3ec; border: 1px solid #bbf7d0; color: #166534; }
[data-theme="dark"] .auth-alert-success { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.25); color: #86efac; }
.auth-alert-success i { color: #16a34a; }

/* Form Fields */
.auth-form { display: flex; flex-direction: column; gap: 0.85rem; }
.auth-field { display: flex; flex-direction: column; }
.auth-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: inherit;
  color: #111111;
  background: #ffffff;
  outline: none;
  transition: all 0.15s ease;
}
[data-theme="dark"] .auth-input {
  background: #111726;
  border-color: #1e293b;
  color: #f8fafc;
}
.auth-input::placeholder { color: #9ca3af; font-size: 0.78rem; }
.auth-input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.1);
}
[data-theme="dark"] .auth-input:focus {
  border-color: #f8fafc;
  box-shadow: 0 0 0 2px rgba(248, 250, 252, 0.15);
}
.auth-input:hover { border-color: #d1d1cf; }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-password { padding-right: 2.75rem; }
.auth-eye-btn {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 0.25rem;
  color: #787774; cursor: pointer; font-size: 0.85rem;
  transition: color 0.15s; line-height: 1;
}
.auth-eye-btn:hover { color: #111111; }
[data-theme="dark"] .auth-eye-btn:hover { color: #f8fafc; }

/* Options row */
.auth-options { display: flex; justify-content: flex-end; margin-top: 0.1rem; }
.auth-forgot-link { font-size: 0.72rem; font-weight: 600; color: #787774; text-decoration: none; transition: color 0.15s; }
.auth-forgot-link:hover { color: #111111; text-decoration: underline; }
[data-theme="dark"] .auth-forgot-link:hover { color: #f8fafc; }

/* Minimalist Solid CTA Button */
.auth-submit-btn {
  width: 100%; padding: 0.75rem 1.25rem; border: 1px solid transparent; border-radius: 6px;
  background: #111111; color: #ffffff; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: all 0.15s ease;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 0.35rem; letter-spacing: -0.01em;
}
[data-theme="dark"] .auth-submit-btn {
  background: #f8fafc; color: #0b0f19;
}
.auth-submit-btn:hover {
  background: #262626; transform: translateY(-1px);
}
[data-theme="dark"] .auth-submit-btn:hover {
  background: #e2e8f0;
}
.auth-submit-btn:active { transform: translateY(0); }
.auth-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Guide link */
.auth-guide-link {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  margin-top: 1.25rem; padding: 0.5rem; font-size: 0.72rem; font-weight: 600;
  color: #787774; cursor: pointer; transition: all 0.15s; border-radius: 4px;
}
.auth-guide-link:hover { color: #111111; background: #f3f2ee; }
[data-theme="dark"] .auth-guide-link:hover { color: #f8fafc; background: #151d30; }

/* Back link */
.auth-back-link { text-align: center; margin-top: 1.25rem; }
.auth-back-link a {
  font-size: 0.75rem; font-weight: 600; color: #787774;
  text-decoration: none; transition: color 0.15s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.auth-back-link a:hover { color: #111111; }
[data-theme="dark"] .auth-back-link a:hover { color: #f8fafc; }

/* Footer */
.auth-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.25rem; border-top: 1px solid #eaeaea;
  margin-top: auto; flex-shrink: 0;
}
[data-theme="dark"] .auth-footer {
  border-top-color: #1e293b;
}
.auth-footer span { font-size: 0.68rem; color: #787774; font-weight: 500; }
.auth-version { font-family: 'JetBrains Mono', monospace; font-weight: 600; }

/* ============================================================
   AUTH GUIDE MODAL (CLEAN BENTO MODAL)
   ============================================================ */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 15, 25, 0.6); backdrop-filter: blur(8px); padding: 1.5rem;
}
.auth-modal {
  width: 100%; max-width: 640px; max-height: 85vh;
  background: #ffffff; border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.15);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid #eaeaea;
}
[data-theme="dark"] .auth-modal {
  background: #111726;
  border-color: #1e293b;
}
.auth-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid #eaeaea; flex-shrink: 0;
}
[data-theme="dark"] .auth-modal-header {
  border-bottom-color: #1e293b;
}
.auth-modal-header h3 {
  font-size: 0.9rem; font-weight: 700;
  color: #111111; display: flex; align-items: center; gap: 0.5rem;
}
[data-theme="dark"] .auth-modal-header h3 {
  color: #f8fafc;
}
.auth-modal-close {
  width: 28px; height: 28px; border-radius: 4px;
  background: #fbfbfa; border: 1px solid #eaeaea; color: #787774;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; transition: all 0.15s;
}
[data-theme="dark"] .auth-modal-close {
  background: #151d30; border-color: #1e293b; color: #cbd5e1;
}
.auth-modal-close:hover { background: #fdebec; border-color: #fecaca; color: #991b1b; }

.auth-guide-tabs {
  display: flex; gap: 0.25rem; padding: 0.65rem 1.25rem;
  border-bottom: 1px solid #eaeaea; overflow-x: auto; flex-shrink: 0;
}
[data-theme="dark"] .auth-guide-tabs {
  border-bottom-color: #1e293b;
}
.auth-guide-tab {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.75rem; border-radius: 4px;
  background: transparent; border: 1px solid transparent;
  color: #787774; font-size: 0.72rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.auth-guide-tab:hover { background: #f7f6f3; color: #111111; }
[data-theme="dark"] .auth-guide-tab:hover { background: #151d30; color: #f8fafc; }
.auth-guide-tab.active { background: #111111; color: #ffffff; }
[data-theme="dark"] .auth-guide-tab.active { background: #f8fafc; color: #0b0f19; }

.auth-guide-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.auth-guide-role {
  display: flex; align-items: center; gap: 0.5rem;
  padding-bottom: 0.65rem; margin-bottom: 0.85rem;
  border-bottom: 1px solid #eaeaea; font-size: 0.82rem; color: #111111;
}
[data-theme="dark"] .auth-guide-role {
  border-bottom-color: #1e293b; color: #f8fafc;
}
.auth-guide-steps {
  list-style: none; counter-reset: guide-step;
  padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem;
}
.auth-guide-steps li {
  counter-increment: guide-step; position: relative;
  padding: 0.75rem 0.85rem 0.75rem 2.5rem; border-radius: 6px;
  background: #fbfbfa; border: 1px solid #eaeaea;
  font-size: 0.75rem; color: #374151; line-height: 1.5;
}
[data-theme="dark"] .auth-guide-steps li {
  background: #0b0f19; border-color: #1e293b; color: #cbd5e1;
}
.auth-guide-steps li::before {
  content: counter(guide-step); position: absolute; left: 0.75rem; top: 0.75rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: #111111; color: #ffffff; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .auth-guide-steps li::before {
  background: #f8fafc; color: #0b0f19;
}
.auth-guide-steps li strong { color: #111111; }
[data-theme="dark"] .auth-guide-steps li strong { color: #f8fafc; }

.auth-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem; border-top: 1px solid #eaeaea;
  flex-shrink: 0; gap: 1rem;
}
[data-theme="dark"] .auth-modal-footer {
  border-top-color: #1e293b;
}
.auth-modal-footer span {
  font-size: 0.7rem; color: #787774; font-weight: 500;
}
.auth-modal-close-btn {
  padding: 0.4rem 1rem; border-radius: 4px;
  background: #f7f6f3; border: 1px solid #eaeaea; color: #374151;
  font-size: 0.72rem; font-weight: 600; cursor: pointer;
}
[data-theme="dark"] .auth-modal-close-btn {
  background: #151d30; border-color: #1e293b; color: #cbd5e1;
}

/* Responsive Mobile Auth */
@media (max-width: 900px) {
  .auth-page { flex-direction: column; }
  .auth-image-panel { display: none; }
  .auth-mobile-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #090d16;
    flex-shrink: 0;
  }
  .auth-mobile-logo {
    height: 36px; width: auto; object-fit: contain; flex-shrink: 0;
  }
  .auth-mobile-branding-text h3 {
    font-size: 0.85rem; font-weight: 800; color: #ffffff;
    margin: 0 0 0.1rem 0; line-height: 1.2;
  }
  .auth-mobile-branding-text p {
    font-size: 0.68rem; color: #94a3b8;
    margin: 0; line-height: 1.3;
  }
  .auth-form-panel { flex: 1; }
  .auth-header { display: none; }
  .auth-form-inner { max-width: 100%; padding: 1.5rem; min-height: auto; }
  .auth-form-content { justify-content: flex-start; }
}

/* ============================================================
   404 NOT FOUND PAGE - ANIMATIONS & STYLES
   ============================================================ */
.not-found-page {
  position: relative;
  overflow: hidden;
}

/* Floating Orbs */
.not-found-illustration .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  animation: orbFloat 8s ease-in-out infinite;
}
.not-found-illustration .orb-1 {
  width: 200px;
  height: 200px;
  background: var(--banner-color1, #6366f1);
  top: -30px;
  left: -40px;
  animation-delay: 0s;
}
.not-found-illustration .orb-2 {
  width: 160px;
  height: 160px;
  background: var(--banner-color2, #8b5cf6);
  top: 20px;
  right: -40px;
  animation-delay: -3s;
  animation-duration: 10s;
}
.not-found-illustration .orb-3 {
  width: 120px;
  height: 120px;
  background: var(--banner-color3, #a855f7);
  bottom: -20px;
  left: 30%;
  animation-delay: -5s;
  animation-duration: 12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 10px) scale(0.95); }
  75% { transform: translate(20px, 15px) scale(1.03); }
}

/* Slow bounce for the "0" */
.animate-bounce-slow {
  display: inline-block;
  animation: bounceSlow 2.5s ease-in-out infinite;
}
@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Slow spin for compass icon */
.animate-spin-slow {
  animation: spinSlow 6s linear infinite;
}
@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Card hover glow */
.not-found-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 60px -12px rgba(99, 102, 241, 0.12),
              0 0 0 1px rgba(99, 102, 241, 0.05);
}

/* Dark mode adjustments */
[data-theme="dark"] .not-found-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 20px 60px -12px rgba(139, 92, 246, 0.1),
              0 0 0 1px rgba(139, 92, 246, 0.08);
}
[data-theme="dark"] .not-found-illustration .orb {
  opacity: 0.12;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .not-found-illustration .not-found-illustration > .relative > div {
    font-size: 100px !important;
  }
  .not-found-card {
    padding: 1.5rem !important;
  }
}
