/* ==========================================================================
   SKRIPZI TRACKER V3.0 - STYLESHEET
   Filosofi Desain: Sahabat Akademis (Clean-Morph / Soft Glassmorphism)
   ========================================================================== */

/* 1. VARIABEL & DESIGN TOKENS */
:root {
  /* Color Palette */
  --primary: #FFB090;
  /* Friendly Peach Warm */
  --primary-glow: rgba(255, 176, 144, 0.35);
  --secondary: #E070A0;
  /* Soft Magenta / Pink */
  --bg-cream: #FFF9F6;
  /* Off-White Cream */
  --text-dark: #2C2523;
  /* Dark Charcoal for optimal readability */
  --text-muted: #6D6360;
  --white: #FFFFFF;

  /* Risk Status Colors */
  --color-safe: #A2E0A2;
  /* Soft Green */
  --color-warning: #FCE085;
  /* Pastel Yellow */
  --color-danger: #FFA4A4;
  /* Pastel Red */

  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(224, 112, 160, 0.06);
  --card-radius: 20px;
  --button-radius: 12px;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg-cream: #1A1615;
  --text-dark: #F5F1EF;
  --text-muted: #A39B98;
  --white: #241F1E;
  
  --primary-glow: rgba(255, 176, 144, 0.15);
  
  /* Status Colors slightly adjusted for dark background contrast */
  --color-safe: #7DC97D;
  --color-warning: #EBC850;
  --color-danger: #E87A7A;
  
  /* Dark Glassmorphism */
  --glass-bg: rgba(36, 31, 30, 0.72);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Specific Dark Mode Component Overrides */
[data-theme="dark"] .btn-primary {
  color: #1A1615;
}
[data-theme="dark"] .btn-primary:disabled {
  background: #3D3533;
  color: #7D7370;
}
[data-theme="dark"] .btn-secondary {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-dark);
}
[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 176, 144, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme="dark"] .profile-trigger {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}
[data-theme="dark"] .profile-trigger:hover {
  background: rgba(255, 176, 144, 0.1);
  border-color: var(--primary);
}
[data-theme="dark"] #user-method-badge {
  background: rgba(255, 176, 144, 0.15) !important;
  color: var(--primary) !important;
}
[data-theme="dark"] .dropdown-menu {
  background: rgba(36, 31, 30, 0.95);
  border: 1px solid var(--glass-border);
}
[data-theme="dark"] .dropdown-item {
  color: var(--text-dark);
}
[data-theme="dark"] .dropdown-item:hover {
  background: rgba(255, 176, 144, 0.1);
  color: var(--primary);
}
[data-theme="dark"] .checklist-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .checklist-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--primary) !important;
}
[data-theme="dark"] .checklist-item.checked {
  background: rgba(255, 255, 255, 0.015) !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
}
[data-theme="dark"] .checklist-item.checked .checklist-text {
  color: var(--text-muted) !important;
  opacity: 0.5 !important;
}
[data-theme="dark"] input, 
[data-theme="dark"] select, 
[data-theme="dark"] textarea {
  background: var(--white) !important;
  color: var(--text-dark) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .trick-sidebar-item {
  background: transparent;
  color: var(--text-muted);
}
[data-theme="dark"] .trick-sidebar-item:hover {
  background: rgba(255, 176, 144, 0.1) !important;
  color: var(--text-dark) !important;
}
[data-theme="dark"] .trick-sidebar-item.active {
  background: rgba(255, 176, 144, 0.15) !important;
  color: var(--primary) !important;
  border-left-color: var(--primary) !important;
}
/* Flatpickr Dark Mode Overrides */
[data-theme="dark"] .flatpickr-calendar {
  background: var(--bg-cream) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
[data-theme="dark"] .flatpickr-calendar,
[data-theme="dark"] .flatpickr-days,
[data-theme="dark"] .flatpickr-month,
[data-theme="dark"] .flatpickr-weekday {
  color: var(--text-dark) !important;
  fill: var(--text-dark) !important;
}
[data-theme="dark"] .flatpickr-day {
  color: var(--text-dark) !important;
}
[data-theme="dark"] .flatpickr-day:hover,
[data-theme="dark"] .flatpickr-day:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .flatpickr-day.selected {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--bg-cream) !important;
}
[data-theme="dark"] .flatpickr-day.flatpickr-disabled,
[data-theme="dark"] .flatpickr-day.flatpickr-disabled:hover {
  color: rgba(255, 255, 255, 0.2) !important;
}
[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months {
  background: transparent !important;
  color: var(--text-dark) !important;
}
[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months option {
  background: var(--bg-cream) !important;
  color: var(--text-dark) !important;
}
[data-theme="dark"] .flatpickr-current-month input.cur-year {
  color: var(--text-dark) !important;
}
[data-theme="dark"] .flatpickr-time input:hover,
[data-theme="dark"] .flatpickr-time .flatpickr-am-pm:hover,
[data-theme="dark"] .flatpickr-time input:focus,
[data-theme="dark"] .flatpickr-time .flatpickr-am-pm:focus {
  background: rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .trick-sidebar-item.active {
  background: rgba(255, 176, 144, 0.2) !important;
  color: var(--text-dark) !important;
  border-left: 3px solid var(--primary) !important;
}
[data-theme="dark"] .trick-sidebar-wrapper {
  background: var(--glass-bg) !important;
  border-color: var(--glass-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}
[data-theme="dark"] .trick-sidebar-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .trick-tab-btn:hover {
  background: rgba(255, 176, 144, 0.1);
  color: var(--text-dark);
}
[data-theme="dark"] .btn-urgency-toggle {
  background: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .btn-urgency-toggle:hover {
  background: rgba(255, 176, 144, 0.1) !important;
}
[data-theme="dark"] .btn-urgency-toggle.active[data-urgency="tinggi"] {
  background: rgba(255, 164, 164, 0.15) !important;
  border-color: #FFA4A4 !important;
  color: #FFA4A4 !important;
}
[data-theme="dark"] .btn-urgency-toggle.active[data-urgency="sedang"] {
  background: rgba(252, 224, 133, 0.15) !important;
  border-color: #FCE085 !important;
  color: #FCE085 !important;
}
[data-theme="dark"] .btn-urgency-toggle.active[data-urgency="rendah"] {
  background: transparent !important;
  border-color: var(--text-muted) !important;
  color: var(--text-muted) !important;
}
[data-theme="dark"] .revisi-filter-tabs {
  background: rgba(255, 255, 255, 0.03) !important;
}
[data-theme="dark"] .revisi-filter-tabs .filter-btn:hover {
  background: rgba(255, 176, 144, 0.1) !important;
  color: var(--text-dark);
}
[data-theme="dark"] .revisi-filter-tabs .filter-btn.active {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--primary) !important;
}
[data-theme="dark"] .checklist-info-box {
  background-color: rgba(245, 158, 11, 0.1) !important;
  border-left-color: #f59e0b !important;
  color: #fcd34d !important;
}
[data-theme="dark"] .badge-kampus {
  color: #fcd34d !important;
  background-color: rgba(245, 158, 11, 0.2) !important;
}
[data-theme="dark"] .badge-bimbingan {
  color: #7dd3fc !important;
  background-color: rgba(3, 105, 161, 0.3) !important;
}

/* 2. BASE RESET & INITIAL SETUP */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background-color: var(--bg-cream);
}

body {
  font-family: var(--font-body);
  background-color: transparent;
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Floating organic pastel background blobs */
.blob-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background-color: var(--primary);
  top: -100px;
  right: -50px;
  animation: float-slow 20s infinite alternate;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background-color: var(--secondary);
  bottom: -150px;
  left: -100px;
  animation: float-slow 25s infinite alternate-reverse;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background-color: #FCE085;
  top: 40%;
  left: 30%;
  opacity: 0.2;
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, 30px) scale(1.15);
  }
}

@media (max-width: 768px) {
  .blob-bg {
    filter: blur(50px);
  }
  .blob-1 {
    width: 250px;
    height: 250px;
    top: -60px;
    right: -30px;
  }
  .blob-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -60px;
  }
  .blob-3 {
    width: 200px;
    height: 200px;
  }
}

/* 3. REUSABLE UTILITIES & GLASSMORPHISM COMPONENTS */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: var(--glass-shadow);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.divider {
  height: 1px;
  background: rgba(224, 112, 160, 0.15);
  margin: 20px 0;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 176, 144, 0.08);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  border: 2px solid var(--bg-cream);
}

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

/* 4. BUTTONS & INPUTS SYSTEM */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--button-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
}

.btn:active {
  transform: scale(0.96) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #FFA07A 100%);
  color: var(--text-dark);
  box-shadow: 0 4px 16px 0 rgba(255, 176, 144, 0.4);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 20px 0 rgba(255, 176, 144, 0.55);
  filter: brightness(1.03);
}

.btn-primary:disabled {
  background: #E5DCD8;
  color: #9D928F;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(224, 112, 160, 0.25);
  color: var(--text-dark);
}

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

.btn-google {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid #E5DCD8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  width: 100%;
  font-size: 1.05rem;
  padding: 14px 24px;
  border-radius: 14px;
}

.btn-google:hover {
  background: #FAFAFA;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: #CFC5C2;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
}

.btn-text:hover {
  color: var(--text-dark);
}

/* Inputs styling */
.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

input[type="text"],
input[type="date"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(224, 112, 160, 0.2);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: all 0.25s ease;
}

input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

/* Autocomplete styles */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid rgba(224, 112, 160, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(224, 112, 160, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-top: 4px;
}

.autocomplete-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(224, 112, 160, 0.1);
  transition: background 0.2s;
}

.autocomplete-suggestion-item:last-child {
  border-bottom: none;
}

.autocomplete-suggestion-item:hover {
  background: rgba(255, 176, 144, 0.15);
}

.autocomplete-suggestion-item strong {
  color: var(--primary);
}

/* 5. SPA SCREENS ROUTING */
.screen {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  padding: 16px;
  min-height: 100vh;
}

.screen.active {
  display: block;
  opacity: 1;
}

/* SCREEN A: SIGN IN SCREEN styling */
#auth-screen {
  display: none;
  min-height: 100vh;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
}

#auth-screen.active {
  display: block;
}

.auth-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 40px 32px;
}

.auth-header {
  margin-bottom: 28px;
}

.brand-logo-container {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(255, 176, 144, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.brand-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pulse-animation {
  animation: heartbeat 2.5s infinite ease-in-out;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 176, 144, 0.45);
  }

  100% {
    transform: scale(1);
  }
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

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

.auth-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.auth-security-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(162, 224, 162, 0.15);
  border: 1px dashed rgba(162, 224, 162, 0.5);
  padding: 12px;
  border-radius: 10px;
  margin-top: 24px;
  line-height: 1.4;
}

.auth-security-notice svg {
  color: #34A853;
  flex-shrink: 0;
}

/* SCREEN B: ONBOARDING SCREEN styling */
#onboarding-screen {
  display: none;
  align-items: center;
  justify-content: center;
}

#onboarding-screen.active {
  display: flex;
}

.onboarding-card {
  max-width: 800px;
  width: 100%;
  padding: 40px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.onboarding-step {
  display: none;
  flex-direction: column;
  width: 100%;
}

.onboarding-step.active {
  display: flex;
}

.text-center {
  text-align: center;
  justify-content: center;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.button-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.onboarding-navigation {
  justify-content: space-between;
}

.onboarding-navigation .btn {
  flex: 1;
}

.questionnaire-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

.q-option-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(224, 112, 160, 0.15);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.q-option-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(255, 176, 144, 0.15);
  transform: translateY(-2px);
}

.q-option-card.selected {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 176, 144, 0.15) 100%);
  border-color: var(--primary);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.q-badge {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  background: rgba(220, 112, 160, 0.12);
  color: var(--secondary);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

.q-option-card.selected .q-badge {
  background: var(--primary);
  color: var(--text-dark);
}

.q-option-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.q-option-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* SCREEN C: WORKSPACE DASHBOARD styling */
#dashboard-screen {
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 80px;
}

/* PWA Install Prompt Banner styling */
.pwa-banner {
  background: linear-gradient(135deg, #FFF0E8 0%, #FFE0D5 100%);
  border: 1px solid rgba(255, 176, 144, 0.4);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(255, 176, 144, 0.1);
  animation: slideDown 0.5s ease;
}

.pwa-banner.hidden {
  display: none;
}

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

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pwa-phone-icon {
  color: var(--secondary);
  background: var(--white);
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(224, 112, 160, 0.12);
  width: 40px !important;
  height: 40px !important;
  flex-shrink: 0;
}

.pwa-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

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

.pwa-actions {
  display: flex;
  gap: 8px;
}

/* DESKTOP HEADER & TOP NAVIGATION */
.desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 14px 28px;
  margin-top: 16px;
  margin-bottom: 24px;
  box-shadow: var(--glass-shadow);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-sm {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(255, 176, 144, 0.2);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.nav-link:hover {
  color: var(--text-dark);
  background: rgba(255, 176, 144, 0.1);
}

.nav-link.active {
  color: var(--text-dark);
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(255, 176, 144, 0.25);
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-pic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.profile-status {
  font-size: 0.72rem;
  color: var(--secondary);
  font-weight: 500;
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-logout:hover {
  color: #FFA4A4;
  background: rgba(255, 164, 164, 0.1);
}

/* WIDGETS SECTION LAYOUT */
.dashboard-hero-section {
  margin-bottom: 24px;
}

.welcome-header {
  margin-bottom: 18px;
}

.welcome-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.welcome-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.widget-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.widget-header svg {
  color: var(--secondary);
  width: 18px;
  height: 18px;
}

.widget-body {
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.widget-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 14px;
  border-top: 1px dashed rgba(224, 112, 160, 0.12);
  padding-top: 8px;
}

/* Countdown body specific */
.countdown-card .widget-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.countdown-main-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-align: left;
}

.countdown-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-dark);
}

.countdown-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.countdown-motivational-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 4px;
}

.countdown-progress-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.countdown-progress-ring-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.progress-percent {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}

.progress-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Risk Meter specific */
.risk-card .widget-body {
  flex-direction: column;
  align-items: stretch;
}

.risk-bar-container {
  height: 12px;
  background: rgba(224, 112, 160, 0.1);
  border-radius: 6px;
  position: relative;
  overflow: visible;
  margin-top: 10px;
  margin-bottom: 14px;
}

.risk-bar {
  height: 100%;
  border-radius: 6px;
  width: 100%;
  background: linear-gradient(to right, var(--color-safe) 0%, var(--color-safe) 45%, var(--color-warning) 50%, var(--color-warning) 80%, var(--color-danger) 85%, var(--color-danger) 100%);
}

.risk-marker {
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 4px solid var(--secondary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(224, 112, 160, 0.4);
  transition: left 0.5s ease-in-out;
}

.risk-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.risk-status-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 10px;
  color: #2C2523; /* Hardcoded dark text for contrast on pastel background */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.risk-status-badge svg {
  width: 15px;
  height: 15px;
}

.risk-status-badge.safe {
  background-color: var(--color-safe);
}

.risk-status-badge.warning {
  background-color: var(--color-warning);
}

.risk-status-badge.danger {
  background-color: var(--color-danger);
}

.risk-status-badge.catch-up {
  background-color: #E0C3FC; /* Soft purple */
  border: 1px solid #D0A2F7;
}

.risk-status-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-insight {
  font-weight: normal;
  color: var(--text-muted);
  margin-left: 6px;
  font-size: 0.78rem;
}

.footer-insight strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* ROADMAP TRACK SYSTEM */
.roadmap-section {
  margin-bottom: 30px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title svg {
  color: var(--secondary);
}

.roadmap-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.tracker-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.roadmap-tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  color: var(--text-muted);
}

.roadmap-tooltip-container .info-icon {
  width: 18px;
  height: 18px;
  transition: color 0.3s ease;
}

.roadmap-tooltip-container:hover .info-icon {
  color: var(--primary);
}

.roadmap-tooltip-content {
  position: absolute;
  top: 100%;
  left: 0; /* Mengubah dari right: 0 agar tidak terpotong tepi layar kiri */
  margin-top: 8px;
  width: 260px;
  background: var(--white);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-color);
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: none;
}

.roadmap-tooltip-container:hover .roadmap-tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tracker-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.tracker-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(44, 37, 35, 0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.tracker-progress-fill {
  height: 100%;
  width: 1%;
  background: linear-gradient(to right, var(--primary), #FFA07A);
  border-radius: 6px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255, 176, 144, 0.6);
}

.roadmap-scroll-wrapper {
  position: relative;
  width: 100%;
}

.roadmap-container {
  display: flex;
  gap: 16px;
  padding: 10px 24px;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.roadmap-container::-webkit-scrollbar {
  display: none;
}

.phase-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  background-color: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.phase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

/* Category Colors (Corner Gradient Accent 20%) */
.group-pra-riset { 
  background-image: radial-gradient(circle at top left, rgba(160, 160, 160, 0.12) 0%, transparent 45%); 
}
.group-proposal { 
  background-image: radial-gradient(circle at top left, rgba(255, 176, 144, 0.2) 0%, transparent 45%); 
}
.group-sempro { 
  background-image: radial-gradient(circle at top left, rgba(255, 204, 128, 0.2) 0%, transparent 45%); 
}
.group-eksekusi { 
  background-image: radial-gradient(circle at top left, rgba(224, 112, 160, 0.15) 0%, transparent 45%); 
}
.group-sidang { 
  background-image: radial-gradient(circle at top left, rgba(162, 224, 162, 0.25) 0%, transparent 45%); 
}

/* Fading Past Cards */
.fading-past-card {
  min-height: 140px;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.45);
  border-color: rgba(224, 112, 160, 0.1);
}

.fading-past-card h4, 
.fading-past-card .phase-card-number,
.fading-past-card .past-card-checkmark {
  opacity: 0.45;
}

.fading-past-card .phase-card-header {
  justify-content: center !important;
  width: auto !important;
}

@media screen and (min-width: 769px) {
  .fading-past-card .phase-status-icon {
    display: none;
  }
}

.fading-past-card:hover {
  opacity: 0.85;
}

.fading-past-card .phase-card-desc {
  display: none;
}

.past-card-checkmark {
  color: var(--color-safe);
  width: 52px;
  height: 52px;
  margin-top: 16px;
  opacity: 0.9;
}

/* Floating Arrows (Clean-Morph) */
.roadmap-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  color: var(--text-dark);
}

.roadmap-scroll-wrapper:hover .roadmap-arrow {
  opacity: 1;
}

.roadmap-arrow.left {
  left: -24px;
}

.roadmap-arrow.right {
  right: -24px;
}

.roadmap-arrow:hover {
  background: var(--bg-card);
  transform: translateY(-50%) scale(1.1);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 176, 144, 0.25);
}

/* Card header flex layout on Desktop */
.phase-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
}

.phase-card-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(44, 37, 35, 0.05);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.phase-status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.25s ease;
  border: 1px solid rgba(44, 37, 35, 0.1);
}

/* Styling Badge Durasi di Kartu Peta Jalan */
.phase-duration-pill {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(44, 37, 35, 0.04);
  color: var(--text-muted);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.phase-duration-pill.accelerated {
  background: rgba(224, 112, 160, 0.1);
  color: var(--secondary);
  animation: pulse-border 2s infinite alternate;
}

.phase-duration-pill.active-accelerated {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(224, 112, 160, 0.35);
}

.phase-duration-pill.done {
  background: rgba(162, 224, 162, 0.15);
  color: #2e7d32;
}

/* Styling Overdue Pill (Pulsing Crimson Red) */
.phase-duration-pill.overdue {
  background: rgba(255, 164, 164, 0.18) !important;
  color: #d32f2f !important;
  border: 1px solid rgba(255, 100, 100, 0.35);
  font-weight: 800;
  animation: breathing-pulse 2s infinite ease-in-out;
}

/* Styling Overdue Workspace Badge */
.phase-output-badge.overdue {
  background: rgba(255, 164, 164, 0.18) !important;
  border-color: rgba(211, 47, 47, 0.35) !important;
}

.phase-output-badge.overdue .badge-value {
  color: #d32f2f !important;
}

@keyframes breathing-pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(211, 47, 47, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 12px 4px rgba(211, 47, 47, 0.15);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(211, 47, 47, 0);
    transform: scale(1);
  }
}



@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0px rgba(224, 112, 160, 0.2); }
  100% { box-shadow: 0 0 0 4px rgba(224, 112, 160, 0); }
}

/* Completed Phase status style */
.phase-card.completed-phase {
  background-color: rgba(255, 255, 255, 0.75);
}

.phase-card.completed-phase h4,
.phase-card.completed-phase .phase-card-desc,
.phase-card.completed-phase .phase-duration-pill,
.phase-card.completed-phase .phase-card-number {
  opacity: 0.75;
}

.phase-card.completed-phase .phase-status-icon {
  background: #d4f0d4 !important;
  color: #2e7d32 !important;
  border: 1px solid #a2e0a2 !important;
}

.phase-card.completed-phase .phase-card-number {
  background: rgba(162, 224, 162, 0.15) !important;
  color: #2e7d32 !important;
}

/* Active current phase (steady Peach Warm Glow border) */
.phase-card.current-phase {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow), 0 8px 24px rgba(255, 176, 144, 0.2) !important;
  background: var(--white) !important;
  transform: translateY(-3px);
  z-index: 5;
}

.phase-card.current-phase .phase-card-number {
  background: var(--primary) !important;
  color: #2C1E19 !important;
}

.phase-card.current-phase .phase-status-icon {
  background: rgba(255, 176, 144, 0.25) !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
}

/* Viewing phase status style */
.phase-card.viewing-phase {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 3px rgba(224, 112, 160, 0.35), 0 8px 24px rgba(224, 112, 160, 0.2) !important;
  background: var(--white) !important;
  transform: translateY(-3px);
  z-index: 6;
}

.phase-card.viewing-phase .phase-card-number {
  background: var(--secondary) !important;
  color: var(--white) !important;
}

.phase-card.viewing-phase .phase-status-icon {
  background: rgba(224, 112, 160, 0.25) !important;
  color: var(--secondary) !important;
  border: 1px solid var(--secondary) !important;
}

.phase-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.phase-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ACTIVE WORKSPACE DETAIL BOARD */
.workspace-detail-section {
  margin-top: 10px;
}

.active-phase-workspace {
  padding: 30px;
  background: var(--white);
  border: 1px solid rgba(255, 176, 144, 0.25);
  box-shadow: 0 10px 40px rgba(255, 176, 144, 0.06);
}

.workspace-header-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}

.phase-badge-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phase-meta-badge {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
}

.phase-display-title {
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--text-dark);
}

.phase-output-badge {
  background: rgba(255, 176, 144, 0.1);
  border: 1px solid rgba(255, 176, 144, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  flex-shrink: 0;
  text-align: right;
  max-width: 250px;
}

.badge-label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.badge-value {
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2px;
  line-height: 1.3;
}

.phase-description-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* CHECKLIST WORKSPACE SYSTEM */
.checklist-workspace {
  margin-bottom: 24px;
}

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

.checklist-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-header h3 svg {
  color: var(--secondary);
}

.checklist-counter {
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 700;
  background: rgba(44, 37, 35, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-muted);
}

.checklist-info-box {
  background-color: #fffaf0;
  border-left: 4px solid #f59e0b;
  padding: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.5;
}

.checklist-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Custom premium circular Checkbox row */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(224, 112, 160, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary);
  transform: translateX(3px);
}

.sortable-ghost {
  opacity: 0.4;
  background: rgba(224, 112, 160, 0.1);
  border: 1px dashed var(--secondary);
}

.drag-handle:hover {
  color: var(--secondary) !important;
}

.delete-custom-task,
.edit-custom-task {
  opacity: 0.85;
  transition: all 0.2s ease;
}

.checklist-item:hover .delete-custom-task,
.checklist-item:hover .edit-custom-task {
  opacity: 1;
}

.delete-custom-task:hover,
.edit-custom-task:hover {
  opacity: 1 !important;
  transform: scale(1.15);
}

.checkbox-container {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  border: 2px solid rgba(224, 112, 160, 0.3);
  border-radius: 50%;
  background-color: var(--white);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark::after {
  content: "";
  display: none;
  width: 6px;
  height: 11px;
  border: solid var(--text-dark);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-container input:checked~.checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.checkbox-container input:checked~.checkmark::after {
  display: block;
}

.checklist-text {
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.4;
  transition: all 0.3s ease;
  flex-grow: 1;
}

/* Strikethrough dynamic fade when checked */
.checklist-item.checked {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(224, 112, 160, 0.04);
}

.checklist-item.checked .checklist-text {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Signals and Action button bottom workspace */
.workspace-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px dashed rgba(224, 112, 160, 0.15);
  padding-top: 20px;
}

.signals-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 176, 144, 0.08);
  border: 1px solid rgba(255, 176, 144, 0.2);
  padding: 14px 16px;
  border-radius: 12px;
}

.signals-info svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.signal-text {
  font-size: 0.82rem;
  line-height: 1.4;
}

.signal-text strong {
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.signal-text span {
  color: var(--text-muted);
}

/* 6. MODALS POP-UP LAYOUT (GLASSMOPRHISM MODAL) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 37, 35, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(44, 37, 35, 0.2);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(224, 112, 160, 0.1);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(224, 112, 160, 0.1);
  flex-shrink: 0;
}

.animate-slide-up {
  animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* PATH SELECTOR GRID SYSTEM */
.path-selector-card {
  max-width: 900px;
}

.path-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.path-card {
  background: rgba(255, 176, 144, 0.03);
  border: 1px solid rgba(224, 112, 160, 0.12);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.path-card:hover {
  background: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 176, 144, 0.15);
}

.path-card.selected {
  background: linear-gradient(135deg, var(--white) 0%, rgba(255, 176, 144, 0.15) 100%);
  border-color: var(--primary);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.path-card-icon {
  background: var(--white);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(224, 112, 160, 0.08);
}

.path-card-icon svg {
  color: var(--secondary);
  width: 20px;
  height: 20px;
}

.path-card.selected .path-card-icon {
  background: var(--primary);
}

.path-card.selected .path-card-icon svg {
  color: var(--text-dark);
}

.path-card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.path-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Custom path bottom row styling */
.custom-path-container {
  width: 100%;
}

.path-card-custom {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  border-style: dashed;
}

.path-card-custom .path-card-icon {
  margin-bottom: 0;
}

.path-card-custom .custom-text {
  text-align: left;
}

/* HELP / BANTUAN DIALOG SPECIFIC */
.help-card {
  max-width: 600px;
}

.help-topic {
  background: rgba(255, 176, 144, 0.04);
  border-left: 4px solid var(--primary);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 16px;
}

.help-topic h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-topic p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.help-checklist-tips {
  margin-top: 14px;
}

.help-checklist-tips h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.help-checklist-tips ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-checklist-tips li {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 7. ADAPTIVE RESPONSIVENESS & TOUCH ZONE OPTIMIZATION */

/* Universal Hide helpers */
.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

/* Sticky Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
}

.desktop-header {
  display: flex;
}

/* ==========================================
   RESPONSIVE: MOBILE & TABLET MEDIA QUERY
   ========================================== */
@media screen and (max-width: 768px) {

  /* Show/Hide helpers */
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-flex !important;
  }

  /* Base margins */
  body {
    padding-bottom: 84px;
    /* Ensure space for sticky bottom navigation */
  }

  .screen {
    padding: 12px;
  }

  /* PWA Install Banner Mobile Adjustments */
  .pwa-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
  }

  .pwa-banner-content {
    align-items: flex-start;
  }

  .pwa-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
  }

  .pwa-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  /* 1. Glass cards spacing */
  .glass-card {
    padding: 18px;
    border-radius: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  /* 2. Onboarding Mobile Responsive */
  .onboarding-card {
    padding: 24px 18px;
    min-height: auto;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-subtitle {
    margin-bottom: 24px;
    font-size: 0.85rem;
  }

  .questionnaire-options-grid {
    grid-template-columns: 1fr;
    /* 1 Column for Thumb clicking */
    gap: 12px;
    max-height: 320px;
  }

  .q-option-card {
    padding: 16px;
  }

  /* 3. Dashboard Grid Layout Mobile */
  .desktop-header {
    display: none !important;
    /* Hide Desktop Header on mobile */
  }

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

  .widgets-grid {
    grid-template-columns: 1fr;
    /* Stack countdown & risk meter vertically */
    gap: 14px;
  }

  .widget-card {
    padding: 16px;
    border-radius: 16px;
  }

  .countdown-number {
    font-size: 2.3rem;
  }

  /* 4. TRANSFORM ROADMAP layout to VERTICAL TIMELINE / SNAKE PATH */
  .roadmap-container {
    display: flex !important;
    flex-direction: column;
    /* Vertical stacked layout dengan left gutter untuk garis timeline */
    overflow-x: visible;
    padding: 0 0 0 44px; /* Gutter kiri 44px agar garis bebas dari kartu */
    margin: 0;
    gap: 12px;
    position: relative;
  }

  /* Timeline vertical background indicator line — tepat di tengah gutter 44px */
  .roadmap-container::before {
    content: "";
    position: absolute;
    left: 20px; /* Tepat di tengah gutter kiri */
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: rgba(255, 176, 144, 0.25);
    z-index: 1;
    pointer-events: none;
  }

  .phase-card {
    flex: none;
    width: 100%;
    scroll-snap-align: none;
    padding: 14px 16px; /* Padding normal — bullet icon di luar card */
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
    position: relative;
  }

  .roadmap-container .phase-card::after {
    display: none !important;
    /* Hide Desktop scroll arrow */
  }

  .phase-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: static !important;
    transform: none !important;
    margin-bottom: 8px !important; /* Jarak ke judul fase */
  }

  .phase-card-number {
    display: inline-block !important; /* Show micro number label on mobile */
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(44, 37, 35, 0.05);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
  }

  .phase-status-icon {
    position: absolute !important;
    /* left: -38px menempatkan center icon tepat di tengah garis:
       container padding-left(44) - 38 + icon-half(14) = 20px = left garis */
    left: -38px !important;
    top: 22px !important; /* Sejajar baris pertama kartu */
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    background: var(--white) !important; /* Pastikan bg putih menutupi garis */
  }

  .phase-card h4 {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }

  .phase-card-desc {
    font-size: 0.72rem;
  }

  /* Glow active line connect mobile */
  .phase-card.current-phase,
  .phase-card.viewing-phase {
    transform: none !important;
  }

  /* 5. Mobile Workspace details */
  .active-phase-workspace {
    padding: 20px 16px;
    border-radius: 16px;
    margin-top: 14px;
  }

  .workspace-header-details {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .phase-display-title {
    font-size: 1.25rem;
  }

  .phase-workspace-right-badges {
    width: 100%;
    gap: 8px !important;
  }

  .phase-workspace-right-badges .phase-output-badge {
    text-align: left;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    flex: 1 1 calc(50% - 4px);
  }

  .phase-description-text {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* Checkbox Touch target optimization */
  .checklist-item {
    padding: 12px;
    gap: 12px;
    border-radius: 12px;
  }

  .checkmark {
    width: 24px;
    height: 24px;
  }

  .checklist-text {
    font-size: 0.92rem;
  }

  .revisi-text {
    font-size: 0.9rem;
  }

  .signals-info {
    padding: 12px;
  }

  .signal-text {
    font-size: 0.75rem;
  }

  /* 6. Modals Layout Mobile */
  .modal-card {
    border-radius: 20px;
  }

  .modal-header {
    padding: 18px 20px 12px;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-body {
    padding: 16px 20px;
  }

  .path-options-grid {
    grid-template-columns: 1fr;
    /* 1 Column for mobile view */
    gap: 12px;
  }

  .path-card {
    padding: 14px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .path-card-icon {
    margin-bottom: 0;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .path-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .path-card h3 {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .path-card p {
    font-size: 0.68rem;
  }

  .modal-footer {
    padding: 12px 20px 18px;
  }

  /* 7. Mobile Sticky Bottom Nav bar layout */
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    z-index: 99;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .mobile-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.65rem;
    cursor: pointer;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
  }

  .mobile-nav-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
  }

  .mobile-nav-btn:active svg {
    transform: scale(0.85);
  }

  .mobile-nav-btn.active {
    color: var(--secondary);
  }

  .mobile-nav-btn.active svg {
    color: var(--secondary);
  }
}

/* Landscape / Midrange responsiveness tablet layout */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .path-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   8. ARSITEKTUR NAVIGASI BARU, DROPDOWN PROFIL, TAB SYSTEM & BIMBINGAN
   ========================================================================== */

/* 8.1 SPA TAB SYSTEM */
.tab-pane {
  display: none !important;
  opacity: 0;
}

.tab-pane.active {
  display: block !important;
  opacity: 1;
  animation: fadeInTab 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* 8.2 DROPDOWN PROFIL DESKTOP */
.profile-dropdown {
  position: relative;
  user-select: none;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(255, 176, 144, 0.12);
  transform: translateY(-1px);
}

.dropdown-chevron {
  color: var(--text-muted);
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.25s ease;
}

.profile-dropdown.active .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--secondary);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(44, 37, 35, 0.08);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(-4px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
}

.profile-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.dropdown-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.dropdown-item svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--secondary);
  transition: transform 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255, 176, 144, 0.15);
  color: var(--text-dark);
}

.dropdown-item:hover svg {
  transform: translateX(2px);
}

.dropdown-item.logout {
  color: #d32f2f;
}

.dropdown-item.logout svg {
  color: #ffa4a4;
}

.dropdown-item.logout:hover {
  background: rgba(255, 164, 164, 0.12);
}

.dropdown-divider {
  height: 1px;
  background: rgba(224, 112, 160, 0.1);
  margin: 6px 0;
}

/* 8.3 KATALOG PANDUAN AKADEMIS */
.panduan-pustaka-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.panduan-card {
  background: var(--white);
  border: 1px solid rgba(255, 176, 144, 0.22);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(255, 176, 144, 0.04);
  padding: 18px 24px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.panduan-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 176, 144, 0.1);
  transform: translateX(2px);
}

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

.panduan-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panduan-phase-badge {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  background: rgba(220, 112, 160, 0.08);
  color: var(--secondary);
  padding: 4px 10px;
  border-radius: 6px;
}

.panduan-card.active .panduan-phase-badge {
  background: var(--primary);
  color: var(--text-dark);
}

.panduan-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.panduan-chevron {
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.panduan-card.active .panduan-chevron {
  transform: rotate(180deg);
  color: var(--secondary);
}

.panduan-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panduan-card.active .panduan-card-content {
  max-height: 800px;
  padding-top: 16px;
  border-top: 1px dashed rgba(224, 112, 160, 0.12);
  margin-top: 14px;
}

.panduan-description {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.panduan-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panduan-meta-box {
  background: rgba(44, 37, 35, 0.03);
  border: 1px solid rgba(44, 37, 35, 0.05);
  border-radius: 12px;
  padding: 12px 14px;
}

.panduan-meta-box.highlight {
  background: rgba(255, 176, 144, 0.06);
  border-color: rgba(255, 176, 144, 0.2);
}

.panduan-meta-box h4 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panduan-meta-box h4 svg {
  width: 14px;
  height: 14px;
  color: var(--secondary);
}

.panduan-meta-box p {
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.4;
  font-weight: 500;
}

.panduan-tips-box {
  background: rgba(162, 224, 162, 0.08);
  border-left: 4px solid var(--color-safe);
  padding: 14px;
  border-radius: 0 12px 12px 0;
}

.panduan-tips-box h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panduan-tips-box h4 svg {
  width: 16px;
  height: 16px;
  color: #2e7d32;
}

.panduan-tips-box ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panduan-tips-box li {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 8.4 RIWAYAT BIMBINGAN REVISI */
.riwayat-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 20px;
  align-items: start;
}

.revisi-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.revisi-form select:focus,
.revisi-form textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Revisi list cards */
.revisi-card-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid rgba(224, 112, 160, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.2s ease;
  gap: 12px;
}

.revisi-card-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 176, 144, 0.06);
  transform: translateX(2px);
}

.revisi-card-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-grow: 1;
}

.revisi-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.revisi-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.4;
  transition: all 0.3s ease;
}

.revisi-card-item.completed {
  background: rgba(250, 250, 249, 0.6); /* Lebih gelap sedikit dari putih */
  border-color: rgba(0, 0, 0, 0.05);
  opacity: 0.6; /* Lebih transparan */
  filter: grayscale(100%); /* Membuat seluruh warnanya abu-abu pudar */
}

.revisi-card-item.completed .revisi-text-display,
.revisi-card-item.completed .follow-up-display p {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.6;
}

.revisi-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.revisi-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.revisi-meta-item svg {
  width: 12px;
  height: 12px;
  color: var(--secondary);
}

.revisi-btn-delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.revisi-btn-delete:hover {
  color: #ffa4a4;
  background: rgba(255, 164, 164, 0.1);
}

.revisi-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  gap: 10px;
}

.revisi-empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  opacity: 0.5;
  animation: heartbeat 3s infinite ease-in-out;
}

.revisi-empty-state p {
  font-size: 0.82rem;
  max-width: 250px;
  line-height: 1.4;
}

/* Filter buttons styling */
.revisi-filter-tabs .filter-btn:hover {
  color: var(--text-dark);
}

.revisi-filter-tabs .filter-btn.active {
  background: var(--white) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 2px 8px rgba(44, 37, 35, 0.05);
}

/* Reset segmented alert box styling */
.alert-box-segmented p {
  margin-bottom: 0 !important;
}

/* ==========================================
   DESKTOP TOP NAVIGATION BAR & PROFILE DROPDOWN
   ========================================== */
.desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  margin-bottom: 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-sm {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.desktop-nav {
  display: flex;
  gap: 16px;
}

.desktop-nav .nav-link {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--button-radius);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.desktop-nav .nav-link:hover {
  background: rgba(255, 176, 144, 0.1);
  color: var(--text-dark);
}

.desktop-nav .nav-link.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 176, 144, 0.15);
}

.desktop-nav .nav-link svg {
  width: 18px;
  height: 18px;
}

.profile-dropdown {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.profile-trigger:hover, .profile-dropdown.active .profile-trigger {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: var(--primary-glow);
}

.profile-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.profile-status {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dropdown-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.profile-dropdown.active .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border: 1px solid var(--glass-border);
  min-width: 240px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 200;
}

.profile-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 0.2s ease;
  font-weight: 500;
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255, 176, 144, 0.1);
  color: var(--primary);
}

.dropdown-item:hover svg {
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.05);
  margin: 6px 0;
}

.dropdown-item.logout {
  color: #E070A0;
}

.dropdown-item.logout svg {
  color: #E070A0;
}

.dropdown-item.logout:hover {
  background: rgba(224, 112, 160, 0.1);
}

/* ==========================================
   NAVIGATION BADGE URGENCY
   ========================================== */
.nav-badge-urgency {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-danger, #E53935);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

/* ==========================================
   RIWAYAT BIMBINGAN LAYOUT
   ========================================== */
.riwayat-grid-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
}

/* ==========================================
   TAB PANE SYSTEM (SPA NAVIGATION)
   ========================================== */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeInTab 0.4s ease forwards;
}

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

/* ==========================================
   RESPONSIVE LAYOUT FOR NEW NAV & TAB SYSTEM
   ========================================== */
@media screen and (max-width: 768px) {
  .riwayat-grid-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .risk-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .panduan-details-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .panduan-card {
    padding: 14px 16px;
  }
  
  .profile-dropdown {
    display: none !important;
  }
}

/* ==========================================
   TAB RIWAYAT CUSTOM LAYOUT & STYLING
   ========================================== */
.riwayat-grid-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
}

.form-revisi-card {
  align-self: start;
}

/* Override inline styles dari app.js untuk revisi-card-item */
.revisi-card-item {
  padding: 16px !important;
  display: flex;
  gap: 8px;
}

.revisi-card-body {
  gap: 8px !important;
}

/* Ini mentarget baris badge fase & urgensi */
.revisi-card-body > div:nth-child(2) {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

/* Ini mentarget area tindak lanjut di paling bawah card */
.revisi-card-body > div:last-child {
  border: 1px dashed rgba(0,0,0,0.15) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  min-height: 44px !important;
  cursor: text !important;
}

/* Mobile Responsiveness untuk Tab Riwayat */
@media (max-width: 768px) {
  .riwayat-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   SKRIPZI TRICK NOTES
   ========================================== */
.trick-notes-nav::-webkit-scrollbar {
  height: 4px;
}
.trick-notes-nav::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 4px;
}

.trick-tab-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.trick-tab-btn.active {
  background: var(--primary);
  color: var(--text-dark);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(224, 112, 160, 0.3);
}

.trick-card {
  background: var(--white);
  border-left: 4px solid rgba(224, 112, 160, 0.4);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.trick-card:hover {
  transform: translateY(-2px);
}
.trick-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.trick-card-icon {
  color: var(--primary);
  opacity: 0.8;
}
.trick-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-dark);
}
.trick-card-body {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}
.trick-card-body p {
  margin-bottom: 12px;
}
.trick-card-body p:last-child {
  margin-bottom: 0;
}
.trick-card-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* Layout Per Fase */
.trick-phase-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.trick-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trick-sidebar-item {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: none;
  text-align: left;
}
.trick-sidebar-item:hover {
  background: rgba(0,0,0,0.03);
  color: var(--text-dark);
}
.trick-sidebar-item.active {
  background: rgba(224, 112, 160, 0.1);
  color: var(--primary);
  font-weight: 700;
}
.trick-mobile-select {
  display: none;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  outline: none;
}
.trick-phase-section {
  margin-bottom: 40px;
}
.trick-phase-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 8px;
}

/* Glossary Layout */
.glossary-search-wrapper {
  margin-bottom: 24px;
  position: relative;
}
input[type="text"].glossary-search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.glossary-search-input:focus {
  border-color: var(--primary);
}
.glossary-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.glossary-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.glossary-category {
  margin-bottom: 32px;
}
.glossary-category-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(224, 112, 160, 0.2);
}
.glossary-item {
  background: var(--white);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.glossary-term {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.glossary-definition {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
}

.trick-notes-sticky-header {
  position: sticky;
  top: 6px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 32px 4px 32px;
  margin: 0 auto 32px auto;
  width: fit-content;
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(224, 112, 160, 0.08);
}

@media (min-width: 769px) {
  .trick-sidebar-wrapper {
    position: sticky;
    top: 180px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 16px 8px 16px 16px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(224, 112, 160, 0.15);
    box-shadow: 0 8px 24px rgba(224, 112, 160, 0.08);
  }
  .trick-sidebar-wrapper::-webkit-scrollbar {
    width: 4px;
  }
  .trick-sidebar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
  }
}

/* Checklist Badges */
.badge-bimbingan {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0369a1;
  background-color: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-kampus {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #b45309;
  background-color: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .trick-phase-layout {
    grid-template-columns: 1fr;
  }
  .trick-sidebar {
    display: none;
  }
  .trick-mobile-select {
    display: block;
  }
  .glossary-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LANDING PAGE STYLES (Appended)
   ========================================================================== */

.lp-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-section {
  padding: 80px 0;
}

.lp-section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.lp-section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.lp-hero {
  padding: 120px 0 80px;
  text-align: center;
}

.lp-hero .brand-logo-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  background: transparent;
  box-shadow: none;
}

.lp-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.lp-hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.lp-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.lp-hero-actions .btn {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.lp-hero-mockup {
  margin-top: 60px;
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(224, 112, 160, 0.4);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  box-shadow: var(--glass-shadow);
}

/* Grid Layouts */
.lp-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.lp-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

/* Card Styles */
.lp-card {
  background: var(--white);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(224, 112, 160, 0.1);
  transition: transform 0.3s ease;
}

.lp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.lp-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 176, 144, 0.2);
  color: var(--secondary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.lp-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.lp-card-desc {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Feature Row */
.lp-feature-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 80px;
}

.lp-feature-row:last-child {
  margin-bottom: 0;
}

.lp-feature-row.reverse {
  flex-direction: row-reverse;
}

.lp-feature-text {
  flex: 1;
}

.lp-feature-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.lp-feature-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.lp-feature-img {
  flex: 1;
  height: 300px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(224, 112, 160, 0.4);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
}

/* FAQ Accordion */
.lp-faq-item {
  background: var(--white);
  border: 1px solid rgba(224, 112, 160, 0.1);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.lp-faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  user-select: none;
}

.lp-faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  line-height: 1.6;
}

.lp-faq-item.active .lp-faq-answer {
  padding: 0 24px 24px;
  max-height: 500px; /* arbitrary max height */
}

.lp-faq-item.active .lp-faq-question .lucide {
  transform: rotate(180deg);
}

/* CTA Bottom */
.lp-cta-bottom {
  background: linear-gradient(135deg, var(--white) 0%, rgba(255, 176, 144, 0.1) 100%);
  border-radius: 32px;
  padding: 60px 40px;
  text-align: center;
  border: 1px solid rgba(255, 176, 144, 0.3);
  margin-top: 40px;
}

.lp-cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .lp-hero-title {
    font-size: 2.5rem;
  }
  .lp-feature-row, .lp-feature-row.reverse {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 60px;
  }
  .lp-hero-mockup {
    height: 250px;
  }
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}
.btn-theme-toggle:hover {
  background: var(--primary-glow);
  transform: scale(1.05);
}

/* Urgency Toggles */
.urgency-toggles {
  display: flex;
  gap: 8px;
}
.btn-urgency-toggle {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(224, 112, 160, 0.2);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-urgency-toggle:hover {
  background: rgba(255, 255, 255, 0.8);
}
.btn-urgency-toggle.active[data-urgency="tinggi"] {
  background: rgba(255, 164, 164, 0.2);
  border-color: #FFA4A4;
  color: #D32F2F;
}
.btn-urgency-toggle.active[data-urgency="sedang"] {
  background: rgba(252, 224, 133, 0.2);
  border-color: #FCE085;
  color: #B28900;
}
.btn-urgency-toggle.active[data-urgency="rendah"] {
  background: transparent;
  border-color: var(--text-muted);
  color: var(--text-dark);
}

/* FIX FLATPICKR ARROWS VISIBILITY IN DARK MODE */
[data-theme="dark"] .flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
[data-theme="dark"] .flatpickr-calendar .flatpickr-months .flatpickr-next-month {
  fill: #F5F1EF !important;
  color: #F5F1EF !important;
}
[data-theme="dark"] .flatpickr-calendar .flatpickr-months .flatpickr-prev-month svg,
[data-theme="dark"] .flatpickr-calendar .flatpickr-months .flatpickr-next-month svg {
  fill: #F5F1EF !important;
}

/* FIX ONBOARDING CARDS TEXT VISIBILITY IN DARK MODE */
[data-theme="dark"] .q-option-card {
  background: rgba(36, 31, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .q-option-card h3,
[data-theme="dark"] .q-option-card .q-badge {
  color: #F5F1EF !important;
}
[data-theme="dark"] .q-option-card p {
  color: #A39B98 !important;
}
[data-theme="dark"] .q-option-card:hover {
  background: rgba(255, 176, 144, 0.15);
  border-color: var(--primary);
}

/* FIX ROADMAP COMPLETED CARDS (PAST PHASES) VISIBILITY IN DARK MODE */
[data-theme="dark"] .fading-past-card {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .fading-past-card h4 {
  opacity: 0.8 !important;
  color: #F8F9FA !important;
}
[data-theme="dark"] .fading-past-card .phase-card-number {
  background: rgba(162, 224, 162, 0.15) !important;
  color: #8ce98c !important; /* Brighter green for contrast */
  opacity: 1 !important;
}
[data-theme="dark"] .fading-past-card .past-card-checkmark {
  color: #8ce98c !important;
  opacity: 0.9 !important;
}