/* ===================================================================
   PMB University — Design System & Global Styles
   Converted from Stitch Tailwind design to vanilla CSS
   =================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Work+Sans:wght@400;500;600&display=swap');

/* ===================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   =================================================================== */
:root {
  /* --- Colors --- */
  --primary: #000a1e;
  --primary-container: #002147;
  --on-primary: #ffffff;
  --on-primary-container: #708ab5;
  --primary-fixed: #d6e3ff;
  --primary-fixed-dim: #aec7f6;
  --on-primary-fixed: #001b3d;
  --on-primary-fixed-variant: #2d476f;
  --inverse-primary: #aec7f6;

  --secondary: #7f5700;
  --secondary-container: #feb316;
  --on-secondary: #ffffff;
  --on-secondary-container: #6a4800;
  --secondary-fixed: #ffdead;
  --secondary-fixed-dim: #ffba3b;
  --on-secondary-fixed: #281900;
  --on-secondary-fixed-variant: #604100;

  --tertiary: #080b0e;
  --tertiary-container: #1f2225;
  --on-tertiary: #ffffff;
  --on-tertiary-container: #86898d;
  --tertiary-fixed: #e0e2e6;
  --tertiary-fixed-dim: #c4c7ca;
  --on-tertiary-fixed: #191c1f;
  --on-tertiary-fixed-variant: #44474a;

  --surface: #f8f9ff;
  --surface-dim: #d0dbed;
  --surface-bright: #f8f9ff;
  --surface-container: #e6eeff;
  --surface-container-low: #eff4ff;
  --surface-container-lowest: #ffffff;
  --surface-container-high: #dee9fc;
  --surface-container-highest: #d9e3f6;
  --surface-variant: #d9e3f6;
  --surface-tint: #465f88;

  --on-surface: #121c2a;
  --on-surface-variant: #44474e;
  --on-background: #121c2a;
  --background: #f8f9ff;

  --outline: #74777f;
  --outline-variant: #c4c6cf;

  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error: #ffffff;
  --on-error-container: #93000a;

  --inverse-surface: #27313f;
  --inverse-on-surface: #eaf1ff;

  /* --- Typography --- */
  --font-headline: 'Source Serif 4', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* --- Spacing --- */
  --space-base: 8px;
  --space-stack-sm: 4px;
  --space-stack-md: 16px;
  --space-stack-lg: 32px;
  --space-gutter: 24px;
  --space-margin-mobile: 20px;
  --space-margin-desktop: 64px;
  --container-max: 1280px;

  /* --- Border Radius --- */
  --radius-sm: 2px;
  --radius-default: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--on-surface);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* ===================================================================
   3. TYPOGRAPHY CLASSES
   =================================================================== */
.display-lg {
  font-family: var(--font-headline);
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: var(--font-headline);
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
}

.headline-md {
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.headline-sm {
  font-family: var(--font-headline);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.body-md {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.body-sm {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.label-md {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.caption {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

@media (min-width: 768px) {
  .display-lg {
    font-size: 48px;
    line-height: 56px;
  }
}

/* ===================================================================
   4. LAYOUT UTILITIES
   =================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-margin-mobile);
  padding-right: var(--space-margin-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-margin-desktop);
    padding-right: var(--space-margin-desktop);
  }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
  .lg\:col-span-5 { grid-column: span 5; }
  .lg\:col-span-7 { grid-column: span 7; }
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ===================================================================
   5. COLOR UTILITIES
   =================================================================== */
.text-primary { color: var(--primary); }
.text-on-primary { color: var(--on-primary); }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-secondary { color: var(--secondary); }
.text-on-secondary-container { color: var(--on-secondary-container); }
.text-on-primary-container { color: var(--on-primary-container); }
.text-on-tertiary-container { color: var(--on-tertiary-container); }
.text-outline { color: var(--outline); }
.text-outline-variant { color: var(--outline-variant); }
.text-error { color: var(--error); }

.bg-primary { background-color: var(--primary); }
.bg-primary-container { background-color: var(--primary-container); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary-container { background-color: var(--secondary-container); }
.bg-surface { background-color: var(--surface); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-surface-container-lowest { background-color: var(--surface-container-lowest); }
.bg-surface-container-high { background-color: var(--surface-container-high); }
.bg-surface-variant { background-color: var(--surface-variant); }
.bg-tertiary-container { background-color: var(--tertiary-container); }

/* ===================================================================
   6. COMPONENT: NAVBAR
   =================================================================== */
.navbar {
  background-color: var(--surface);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--outline-variant);
  transition: box-shadow var(--transition-base);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding-left: var(--space-margin-mobile);
  padding-right: var(--space-margin-mobile);
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .navbar-inner {
    padding-left: var(--space-margin-desktop);
    padding-right: var(--space-margin-desktop);
  }
}

.navbar-brand {
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--primary);
}

.navbar-nav {
  display: none;
  gap: 32px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .navbar-nav {
    display: flex;
  }
}

.navbar-nav a {
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  height: 80px;
  transition: color var(--transition-base);
  border-bottom: 2px solid transparent;
}

.navbar-nav a:hover {
  color: var(--secondary);
}

.navbar-nav a.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--secondary-container);
}

.navbar-cta {
  display: none;
  background-color: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 24px;
  border-radius: var(--radius-default);
  transition: background-color var(--transition-base);
}

.navbar-cta:hover {
  background-color: var(--primary-container);
}

@media (min-width: 768px) {
  .navbar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.navbar-mobile-btn {
  display: block;
  color: var(--primary);
  padding: 8px;
  background: none;
  border: none;
}

@media (min-width: 768px) {
  .navbar-mobile-btn {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  padding: var(--space-stack-md) var(--space-margin-mobile);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 0;
  color: var(--on-surface-variant);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--outline-variant);
  transition: color var(--transition-base);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--secondary);
}

.mobile-menu .mobile-cta {
  margin-top: var(--space-stack-md);
  background-color: var(--primary);
  color: var(--on-primary);
  padding: 12px;
  border-radius: var(--radius-default);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ===================================================================
   7. COMPONENT: HERO
   =================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-color: var(--surface-container-lowest);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 80vh;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 10, 30, 0.7);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px var(--space-margin-mobile);
}

@media (min-width: 768px) {
  .hero-content {
    padding: 48px var(--space-margin-desktop);
  }
}

.hero-text {
  max-width: 672px;
  color: var(--on-primary);
}

.hero-title {
  font-family: var(--font-headline);
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-primary);
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 48px;
    line-height: 56px;
  }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--surface-variant);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* ===================================================================
   8. COMPONENT: BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 32px;
  border-radius: var(--radius-default);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--secondary-fixed-dim);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--on-primary);
}

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

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

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.btn-outline-dark:hover {
  background-color: var(--surface-container-low);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 32px;
}

.btn .material-symbols-outlined {
  margin-right: 8px;
  font-size: 20px;
}

/* ===================================================================
   9. COMPONENT: CARDS
   =================================================================== */
.card {
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: background-color var(--transition-slow);
}

.card:hover {
  background-color: var(--surface-container-low);
}

.card-highlight {
  position: relative;
  overflow: hidden;
}

.card-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--secondary-container);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon-primary {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}

.card-icon-secondary {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

.card-icon .material-symbols-outlined {
  font-size: 30px;
}

.card-title {
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.card-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
  margin-bottom: 24px;
  min-height: 72px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);
  transition: color var(--transition-base);
}

.card:hover .card-link {
  color: var(--secondary);
}

.card-link .material-symbols-outlined {
  margin-left: 4px;
  font-size: 14px;
  transition: transform var(--transition-base);
}

.card:hover .card-link .material-symbols-outlined {
  transform: translateX(4px);
}

/* ===================================================================
   10. COMPONENT: SECTION
   =================================================================== */
.section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
}

.section-alt {
  background-color: var(--surface-container-lowest);
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
}

.section-title {
  font-family: var(--font-headline);
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
  max-width: 672px;
}

.section-subtitle.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================================
   11. COMPONENT: STEPS / TIMELINE
   =================================================================== */
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--surface-container-high);
  border: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.step-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 4px;
}

.step-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
}

/* Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  margin-top: 48px;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  .timeline-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 64px;
    padding-bottom: 0;
  }
}

.timeline-grid::before {
  content: '';
  position: absolute;
  background-color: var(--surface-container-high);
  z-index: 0;
  top: 24px;
  left: 24px;
  bottom: 0;
  width: 2px;
}

@media (min-width: 768px) {
  .timeline-grid::before {
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    width: 100%;
    bottom: auto;
  }
}

.timeline-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

.timeline-dot {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot-completed {
  background-color: var(--secondary);
  color: var(--on-secondary);
  box-shadow: 0 4px 12px rgba(127, 87, 0, 0.12);
}

.timeline-dot-current {
  background-color: var(--primary);
  color: var(--on-primary);
  border: 4px solid var(--surface-container-low);
  box-shadow: 0 4px 12px rgba(0, 10, 30, 0.12);
}

.timeline-dot-future {
  background-color: var(--surface);
  color: var(--outline);
  border: 2px solid var(--outline-variant);
}

.timeline-date {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-date-completed { color: var(--secondary); }
.timeline-date-current { color: var(--primary); }
.timeline-date-future { color: var(--on-surface-variant); }

.timeline-label {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

/* ===================================================================
   12. COMPONENT: FORMS
   =================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-sm);
}

.form-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--on-surface);
}

.form-input,
.form-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-default);
  background-color: var(--surface-bright);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.form-input::placeholder {
  color: var(--outline);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.form-input-icon {
  position: relative;
}

.form-input-icon > .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--outline-variant);
  pointer-events: none;
}

.form-input-icon .form-input {
  padding-left: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gutter);
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 768px) {
  .form-grid .col-span-2 {
    grid-column: span 2;
  }
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-md);
}

.form-section-title {
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--outline-variant);
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  accent-color: var(--primary);
}

.optional-badge {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--on-surface-variant);
  background-color: var(--surface-variant);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
}

/* ===================================================================
   13. COMPONENT: FOOTER
   =================================================================== */
.footer {
  background-color: var(--tertiary-container);
  width: 100%;
  margin-top: var(--space-stack-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gutter);
  padding: var(--space-stack-lg) var(--space-margin-mobile);
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(4, 1fr);
    padding: var(--space-stack-lg) var(--space-margin-desktop);
  }
}

.footer-brand {
  font-family: var(--font-headline);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--on-tertiary-container);
  margin-bottom: 16px;
}

.footer-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--on-tertiary-container);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

@media (min-width: 768px) {
  .footer-links {
    grid-column: span 3;
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-link {
  color: var(--on-tertiary-container);
  font-size: 16px;
  line-height: 24px;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--secondary-container);
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(134, 137, 141, 0.2);
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: var(--on-tertiary-container);
}

.footer-bottom-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom-flex {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-links a {
  color: var(--on-tertiary-container);
  font-size: 16px;
  transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
  color: var(--on-tertiary);
  text-decoration: underline;
}

/* ===================================================================
   14. COMPONENT: AUTH PAGES (Login / Register)
   =================================================================== */
.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  padding: var(--space-margin-mobile);
}

@media (min-width: 768px) {
  .auth-main {
    padding: var(--space-margin-desktop);
  }
}

.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
}

.auth-bg-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.auth-card {
  width: 100%;
  max-width: 512px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: var(--radius-xl);
  padding: var(--space-stack-lg);
  box-shadow: var(--shadow-sm);
}

.auth-card-wide {
  max-width: 672px;
  background: var(--surface-container-lowest);
  backdrop-filter: none;
  border: 1px solid var(--outline-variant);
  padding: 32px;
}

@media (min-width: 768px) {
  .auth-card-wide {
    padding: 32px;
  }
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-stack-lg);
}

.auth-title {
  font-family: var(--font-headline);
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-stack-sm);
}

.auth-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

.auth-footer-text {
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
  margin-top: var(--space-stack-md);
}

.auth-footer-text a {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 14px;
  transition: color var(--transition-base);
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-md);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-stack-md);
  margin-bottom: var(--space-stack-lg);
}

.auth-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);
  transition: color var(--transition-base);
}

.auth-link:hover {
  color: var(--primary-container);
  text-decoration: underline;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-lg);
}

/* ===================================================================
   15. COMPONENT: DASHBOARD LAYOUT — PROFESSIONAL REDESIGN
   =================================================================== */
.dash-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--surface);
}

/* --- SIDEBAR --- */
.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 300;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 10, 30, 0.18);
}

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

@media (min-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    height: 100vh;
    transform: translateX(0);
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                min-width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.28s ease;
  }
  .sidebar.collapsed {
    transform: translateX(-100%);
    width: 260px;
    min-width: 260px;
    box-shadow: none;
  }
}

/* --- SIDEBAR OVERLAY (mobile) --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 299;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }
@media (min-width: 1024px) {
  .sidebar-overlay { display: none !important; }
}

/* --- SIDEBAR HEADER --- */
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--secondary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo .material-symbols-outlined {
  color: var(--on-secondary-container);
  font-size: 22px;
}

.sidebar-brand {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.sidebar-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* --- SIDEBAR NAV --- */
.sidebar-nav {
  padding: 12px 10px;
  flex-grow: 1;
}

.sidebar-nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 16px 10px 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.72);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.18s ease;
  margin-bottom: 2px;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.09);
  color: #ffffff;
}

.sidebar-nav-item.active {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(254,179,22,0.25);
}

.sidebar-nav-item.active .material-symbols-outlined {
  color: var(--on-secondary-container);
}

.sidebar-nav-item .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  transition: color 0.18s ease;
}

.sidebar-nav-item:hover .material-symbols-outlined {
  color: #ffffff;
}

/* --- SIDEBAR FOOTER --- */
.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 8px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--secondary-container);
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.sidebar-user-id {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
  font-family: monospace;
}

/* --- DASHBOARD MAIN --- */
.dashboard-main {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

@media (min-width: 1024px) {
  .dashboard-main {
    margin-left: 260px;
    transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sidebar.collapsed ~ .dashboard-main,
  .dash-wrapper.sidebar-collapsed .dashboard-main {
    margin-left: 0;
  }
}

/* --- TOPBAR --- */
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  min-height: 64px;
  border-bottom: 1px solid var(--outline-variant);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-page-title {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .topbar-page-title {
    font-size: 15px;
  }
}

.dashboard-topbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--primary);
  background: var(--surface-container-low);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.dashboard-topbar-btn:hover {
  background: var(--surface-container);
}

.topbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--on-surface-variant);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}

.topbar-icon-btn:hover {
  background: var(--surface-container-low);
  color: var(--primary);
}

.topbar-notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid #fff;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-container);
  cursor: pointer;
  flex-shrink: 0;
}

/* --- DASHBOARD CONTENT AREA --- */
.dashboard-content {
  padding: 28px 32px;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .dashboard-content {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .dashboard-content {
    padding: 16px 12px;
  }
}

/* --- DASHBOARD FORM CONTAINER --- */
.dashboard-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- PAGE HEADER --- */
.dash-page-header {
  margin-bottom: 24px;
}

.dash-page-title {
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.dash-page-subtitle {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

/* --- SECTION CARD --- */
.db-section {
  background: #ffffff;
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}

.db-section:focus-within {
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}

.db-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--surface-container-low);
  border-bottom: 1px solid var(--outline-variant);
}

.db-section-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.db-section-header-icon .material-symbols-outlined {
  font-size: 18px;
  color: var(--on-primary);
}

.db-section-title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  flex-grow: 1;
}

.db-section-body {
  padding: 24px;
}

@media (max-width: 480px) {
  .db-section-body {
    padding: 16px;
  }
}


/* ===================================================================
   16. COMPONENT: STATUS & BADGES
   =================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-pending {
  background-color: var(--secondary-fixed);
  color: var(--on-secondary-fixed);
}

.badge-verified {
  background-color: #dcfce7;
  color: #166534;
}

.badge-action {
  background-color: var(--error-container);
  color: var(--on-error-container);
}

.badge-info {
  background-color: var(--primary-fixed);
  color: var(--on-primary-fixed);
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--surface-container-high);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary-container), var(--secondary-container));
  transition: width 0.5s ease;
}

/* Status Card */
.status-card {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.status-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ===================================================================
   17. COMPONENT: FILE UPLOAD
   =================================================================== */
.upload-zone {
  border: 2px dashed var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  background-color: var(--surface-container-low);
  transition: all var(--transition-base);
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background-color: var(--surface-container);
}

.upload-zone .material-symbols-outlined {
  font-size: 48px;
  color: var(--outline);
  margin-bottom: 16px;
}

.upload-zone-title {
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.upload-zone-desc {
  font-size: 14px;
  color: var(--on-surface-variant);
}

.upload-zone-link {
  color: var(--secondary);
  font-weight: 600;
  cursor: pointer;
}

.upload-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
}

.upload-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background-color: var(--surface-container-high);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.upload-item-info {
  flex-grow: 1;
  min-width: 0;
}

.upload-item-name {
  font-weight: 600;
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-item-meta {
  font-size: 12px;
  color: var(--on-surface-variant);
  margin-top: 4px;
}

/* ===================================================================
   18. COMPONENT: DETAIL PAGE (Jalur)
   =================================================================== */
.detail-hero {
  background-color: var(--primary-container);
  padding: 48px 0;
}

@media (min-width: 768px) {
  .detail-hero {
    padding: 64px 0;
  }
}

.detail-hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-margin-mobile);
}

@media (min-width: 768px) {
  .detail-hero-content {
    padding: 0 var(--space-margin-desktop);
  }
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--on-primary-container);
  margin-bottom: 24px;
}

.detail-breadcrumb a {
  color: var(--on-primary-container);
  transition: color var(--transition-base);
}

.detail-breadcrumb a:hover {
  color: var(--on-primary);
  text-decoration: underline;
}

.info-card {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.info-card-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

.info-list-item .material-symbols-outlined {
  color: var(--secondary);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===================================================================
   19. UTILITIES
   =================================================================== */
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-16 { margin-bottom: 64px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.pt-4 { padding-top: 16px; }
.pb-2 { padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }

.rounded-full { border-radius: var(--radius-full); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

.hidden { display: none; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:col-span-2 { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}

/* --- Decorative --- */
.decorative-block {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 128px;
  height: 128px;
  background-color: var(--surface-container-high);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* --- Link Arrow --- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);
  transition: color var(--transition-base);
}

.link-arrow:hover {
  color: var(--secondary);
}

.link-arrow .material-symbols-outlined {
  margin-left: 8px;
  transition: transform var(--transition-base);
}

.link-arrow:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* --- About Section Image --- */
.about-image-wrapper {
  position: relative;
}

.about-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--outline-variant);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }

/* Material Icons filled */
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1;
}

/* ===================================================================
   21. PRINT STYLES
   =================================================================== */
@media print {
  .navbar, .sidebar, .footer, .mobile-menu { display: none !important; }
  body { background: white; }
}

/* ===================================================================
   22. TOPBAR DROPDOWNS & ANIMATIONS
   =================================================================== */
.topbar-right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dropdown-wrapper {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 130%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 33, 71, 0.12);
  width: 280px;
  border: 1px solid #e8eaf0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}
.dropdown-wrapper.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-header {
  padding: 16px;
  border-bottom: 1px solid #e8eaf0;
  background: #fafbff;
}
.dropdown-header-title {
  font-weight: 600;
  color: #121c2a;
  font-size: 14px;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #44474f;
  transition: background 0.2s;
  border-bottom: 1px solid #f8f9ff;
}
.dropdown-item:last-child {
  border-bottom: none;
}
.dropdown-item:hover {
  background: #f0f7fd;
}
.dropdown-item .material-symbols-outlined {
  font-size: 20px;
}
.dropdown-item-content {
  display: flex;
  flex-direction: column;
}
.dropdown-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #121c2a;
}
.dropdown-item-desc {
  font-size: 11px;
  color: #74777f;
}

/* Click animation for buttons */
.topbar-icon-btn, .topbar-avatar {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
  cursor: pointer;
}
.topbar-icon-btn:active, .topbar-avatar:active {
  transform: scale(0.85);
}

/* ===================================================================
   23. SKELETON LOADING
   =================================================================== */
.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #e8eaf0 !important;
  color: transparent !important;
  border-color: transparent !important;
  border-radius: 8px;
  box-shadow: none !important;
}
.skeleton * {
  visibility: hidden !important;
}
.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===================================================================
   24. DARK MODE THEME
   =================================================================== */
[data-theme="dark"] {
  --surface: #121c2a;
  --surface-dim: #0f1722;
  --surface-bright: #1c2738;
  --surface-container: #172130;
  --surface-container-low: #151e2c;
  --surface-container-lowest: #0d141e;
  --surface-container-high: #1a2535;
  --surface-container-highest: #1e2a3c;
  --surface-variant: #253144;
  
  --on-surface: #eaf1ff;
  --on-surface-variant: #a9b2c3;
  --on-background: #eaf1ff;
  --background: #121c2a;

  --outline: #5c6475;
  --outline-variant: #3a4253;

  --error: #ffb4ab;
  --error-container: #93000a;
  --on-error: #690005;
  --on-error-container: #ffdad6;
}
[data-theme="dark"] body {
  background: var(--background);
  color: var(--on-surface);
}
[data-theme="dark"] .dashboard-topbar,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .content-section,
[data-theme="dark"] .db-section-body,
[data-theme="dark"] .upload-list-item,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .navbar {
  background: var(--surface-container);
  border-color: var(--outline-variant);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .db-section-header,
[data-theme="dark"] .dropdown-header {
  background: var(--surface-container-high);
  border-color: var(--outline-variant);
}
[data-theme="dark"] .dash-page-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .db-section-title,
[data-theme="dark"] .auth-title,
[data-theme="dark"] .stat-value,
[data-theme="dark"] .dropdown-header-title {
  color: var(--on-surface);
}
[data-theme="dark"] .dash-page-subtitle,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .info-label,
[data-theme="dark"] .upload-card-desc,
[data-theme="dark"] .auth-subtitle {
  color: var(--on-surface-variant);
}
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .radio-card,
[data-theme="dark"] .upload-card {
  background: var(--surface-container-low);
  border-color: var(--outline-variant);
  color: var(--on-surface);
}
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .radio-card:hover {
  border-color: var(--primary-fixed-dim);
}
[data-theme="dark"] .radio-title,
[data-theme="dark"] .upload-card-title {
  color: var(--on-surface);
}
[data-theme="dark"] .btn-outline {
  border-color: var(--outline-variant);
  color: var(--on-surface);
}
[data-theme="dark"] .btn-outline:hover {
  background: var(--surface-variant);
}
[data-theme="dark"] .btn-outline-dark {
  border-color: var(--outline-variant);
  color: var(--on-surface);
}
[data-theme="dark"] .btn-outline-dark:hover {
  background: var(--surface-variant);
}
[data-theme="dark"] .radio-card.selected {
  background: var(--primary-container);
  border-color: var(--primary-fixed);
}
[data-theme="dark"] .radio-card.selected .radio-circle {
  background: var(--primary-fixed);
  border-color: var(--primary-fixed);
}

/* ===================================================================
   25. FORM VALIDATION
   =================================================================== */
.form-input.is-valid,
.form-select.is-valid {
  border-color: #166534 !important;
  background-color: #f0fdf4 !important;
}
.form-input.is-invalid,
.form-select.is-invalid {
  border-color: var(--error) !important;
  background-color: var(--error-container) !important;
}
[data-theme="dark"] .form-input.is-valid,
[data-theme="dark"] .form-select.is-valid {
  border-color: #22c55e !important;
  background-color: rgba(34, 197, 94, 0.1) !important;
}
[data-theme="dark"] .form-input.is-invalid,
[data-theme="dark"] .form-select.is-invalid {
  border-color: var(--error) !important;
  background-color: rgba(255, 180, 171, 0.1) !important;
}

/* ===================================================================
   26. TOAST NOTIFICATIONS
   =================================================================== */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid #1a6fa8;
}
[data-theme="dark"] .toast {
  background: var(--surface-container-high);
  color: var(--on-surface);
}
.toast.show {
  transform: translateX(0);
}
.toast.success { border-color: #166534; }
.toast.error { border-color: var(--error); }
.toast-icon { display: flex; align-items: center; justify-content: center; }
.toast.success .toast-icon { color: #166534; }
.toast.error .toast-icon { color: var(--error); }
[data-theme="dark"] .toast.success .toast-icon { color: #4ade80; }
[data-theme="dark"] .toast.error .toast-icon { color: var(--error); }
.toast-content { font-weight: 600; font-size: 14px; }

/* ===================================================================
   27. PASSWORD TOGGLE
   =================================================================== */
.password-toggle-btn {
  background: none;
  border: none;
  color: var(--outline);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.password-toggle-btn:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}

/* ===================================================================
   28. BACK TO TOP
   =================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-primary-container);
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary);
  color: var(--on-primary);
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ===================================================================
   29. BUG FIXES (Password & Dark Mode)
   =================================================================== */
.password-toggle-btn .material-symbols-outlined {
  position: static !important;
  transform: none !important;
  left: auto !important;
  pointer-events: auto !important;
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .theme-toggle .material-symbols-outlined {
  color: var(--on-surface) !important;
}

/* ===================================================================
   30. DARK MODE REFINEMENTS & INLINE STYLE OVERRIDES
   =================================================================== */
[data-theme="dark"] {
  --primary: #aec7f6;
  --on-primary: #001b3d;
  --primary-container: #002147;
  --on-primary-container: #d6e3ff;
  
  --secondary: #ffba3b;
  --on-secondary: #281900;
  --secondary-container: #6a4800;
  --on-secondary-container: #ffdead;
  
  --tertiary: #c4c7ca;
  --on-tertiary: #191c1f;
  --tertiary-container: #44474a;
  --on-tertiary-container: #e0e2e6;
}

[data-theme="dark"] .dash-page-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .db-section-title,
[data-theme="dark"] .auth-title,
[data-theme="dark"] .stat-value,
[data-theme="dark"] .dropdown-header-title {
  color: var(--on-surface) !important;
}

/* Force dark background for specific elements missing CSS classes */
[data-theme="dark"] .content-section,
[data-theme="dark"] .db-section,
[data-theme="dark"] .dash-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .auth-card {
  background: var(--surface-container) !important;
  border-color: var(--outline-variant) !important;
}

/* Catch all inline white backgrounds */
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background-color:#ffffff"],
[data-theme="dark"] [style*="background-color: #ffffff"],
[data-theme="dark"] [style*="background:white"],
[data-theme="dark"] [style*="background: white"] {
  background: var(--surface-container) !important;
  border-color: var(--outline-variant) !important;
}

/* Catch all inline dark text colors */
[data-theme="dark"] [style*="color:#000a1e"],
[data-theme="dark"] [style*="color: #000a1e"],
[data-theme="dark"] [style*="color:#121c2a"],
[data-theme="dark"] [style*="color: #121c2a"],
[data-theme="dark"] [style*="color:#44474f"],
[data-theme="dark"] [style*="color: #44474f"] {
  color: var(--on-surface) !important;
}

/* Specific fix for "Alur Pendaftaran" */
[data-theme="dark"] .step-label {
  color: var(--on-surface) !important;
}
[data-theme="dark"] .step-item-new:not(.active):not(.done) .step-dot {
  background: var(--surface-variant) !important;
}

/* Sidebar Dark Mode Adjustment */
[data-theme="dark"] .sidebar {
  background: var(--surface-container) !important;
  border-right: 1px solid var(--outline-variant);
}
