:root {
  --bg-dark: #090d16;
  --bg-card: rgba(18, 26, 43, 0.75);
  --bg-card-border: rgba(56, 189, 248, 0.18);
  --primary: #06b6d4;
  --primary-glow: rgba(6, 182, 212, 0.4);
  --secondary: #6366f1;
  --accent: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 45%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* NAVBAR */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: block;
}

.brand-title .highlight {
  color: var(--primary);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.main-nav {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

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

.user-info-text {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.user-class {
  font-size: 0.75rem;
  color: var(--primary);
}

.btn-auth {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-card-border);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: var(--transition);
}

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

/* PROGRESS BAR */
.global-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s ease;
}

/* MAIN CONTENT VIEWS */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.view-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
  display: block;
}

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

/* HERO SECTION (BERANDA) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 70vh;
}

.badge-futuristic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--primary);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.meta-card-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.meta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 12px 16px;
  border-radius: var(--radius);
}

.meta-card i {
  color: var(--primary);
  font-size: 1.2rem;
}

.meta-card small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.cta-action {
  display: flex;
  gap: 1rem;
}

/* BUTTONS */
.btn-primary-glow {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-success {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* HERO VISUAL NODES */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.glowing-orb {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(40px);
}

.stage-nodes-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 300px;
  z-index: 2;
}

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 14px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.node-card:hover {
  transform: translateX(8px);
  border-color: var(--primary);
}

.node-card i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* MATERI LAYOUT */
.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 6px;
}

.gradient-icon {
  color: var(--primary);
}

.materi-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}

.materi-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.materi-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.materi-menu-item {
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.materi-menu-item:hover, .materi-menu-item.active {
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

.materi-display-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
}

.materi-body h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.materi-body p {
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 1.2rem;
}

.materi-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sub-info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem;
}

.sub-info-card h4 {
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.materi-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
}

/* SIMULASI INTERAKTIF */
.simulasi-stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.sim-step-badge {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.sim-step-badge.active {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.sim-step-badge.complete {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: var(--accent);
}

.sim-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.sim-question-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.sim-options-grid {
  display: grid;
  gap: 12px;
  margin-top: 1.2rem;
}

.sim-option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  border-radius: 10px;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-option-btn:hover {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.05);
}

/* FORM STYLES */
.case-study-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.case-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.form-group-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.form-label {
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.sub-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.custom-input, .custom-select, .custom-textarea, .custom-select-sm {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.custom-select-sm {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.custom-input:focus, .custom-select:focus, .custom-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* SECURE RESULT DISPLAY */
.result-box-secure {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}

.result-icon-glow {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.secure-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 10px 0 1.5rem 0;
}

.score-badge-large {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--accent);
  padding: 1.2rem 2.5rem;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.score-badge-large span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.score-badge-large strong {
  font-size: 2.5rem;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
}

.info-text-sm {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* REFLEKSI & PENUTUP */
.summary-dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

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

.reflection-form-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 2rem;
}

.quote-motivation-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(99, 102, 241, 0.08));
  border-left: 4px solid var(--primary);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.quote-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* DASHBOARD GURU & TABLE */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  padding-left: 38px;
}

.table-responsive {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
}

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

.custom-table th, .custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 700;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.complete {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.status-badge.in-progress {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-card {
  background: #111827;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-card.modal-lg {
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
}

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

.close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.password-wrapper {
  position: relative;
}

.btn-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.w-100 { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .materi-layout {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .main-nav {
    display: none;
  }
}