/* style.css - Premium Stylesheet for RumahSoal.id */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

:root {
  /* Premium Slate & Indigo Color Palette */
  --primary-hue: 238;
  --primary: hsl(var(--primary-hue), 83%, 62%);
  --primary-hover: hsl(var(--primary-hue), 83%, 52%);
  --primary-light: hsl(var(--primary-hue), 83%, 95%);
  --primary-glow: hsla(var(--primary-hue), 83%, 62%, 0.15);
  
  --secondary: hsl(262, 80%, 50%);
  --secondary-glow: hsla(262, 80%, 50%, 0.15);
  
  --success: hsl(142, 72%, 29%);
  --success-light: hsl(142, 72%, 95%);
  --success-text: hsl(142, 76%, 36%);
  
  --warning: hsl(38, 92%, 50%);
  --warning-light: hsl(38, 92%, 95%);
  --warning-text: hsl(38, 92%, 35%);
  
  --danger: hsl(0, 84%, 60%);
  --danger-light: hsl(0, 84%, 97%);
  --danger-text: hsl(0, 84%, 45%);

  --neutral-900: hsl(222, 47%, 11%);
  --neutral-800: hsl(217, 33%, 17%);
  --neutral-700: hsl(215, 25%, 27%);
  --neutral-600: hsl(215, 16%, 47%);
  --neutral-400: hsl(214, 32%, 91%);
  --neutral-200: hsl(210, 40%, 96%);
  --neutral-100: hsl(210, 40%, 98%);
  
  --sidebar-width: 280px;
  --header-height: 70px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-premium: 0 20px 25px -5px rgba(100, 110, 240, 0.08), 0 10px 10px -5px rgba(100, 110, 240, 0.03);
  --shadow-glow: 0 0 15px var(--primary-glow);
  
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  /* Transition timings */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light / Dark Mode Toggle Vars (Future-proof custom theme colors) */
[data-theme="dark"] {
  --neutral-900: hsl(210, 40%, 98%);
  --neutral-800: hsl(210, 40%, 96%);
  --neutral-700: hsl(214, 32%, 91%);
  --neutral-600: hsl(215, 16%, 67%);
  --neutral-400: hsl(215, 27%, 27%);
  --neutral-200: hsl(217, 33%, 17%);
  --neutral-100: hsl(222, 47%, 11%);
  --primary-light: hsl(var(--primary-hue), 83%, 15%);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Base resets & layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--neutral-100);
  color: var(--neutral-900);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Layout App Shell */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--neutral-200) 0%, var(--neutral-100) 100%);
  border-right: 1px solid var(--neutral-400);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  border-bottom: 1px solid var(--neutral-400);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.logo-text {
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.sidebar-menu {
  flex: 1;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.menu-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neutral-600);
  padding: 8px 12px;
  letter-spacing: 1px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  color: var(--neutral-700);
  text-decoration: none;
  font-weight: 550;
  font-size: 14px;
  gap: 12px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.menu-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--neutral-600);
  transition: stroke var(--transition-fast);
}

.menu-item:hover {
  background-color: var(--neutral-400);
  color: var(--neutral-900);
}

.menu-item:hover svg {
  stroke: var(--neutral-900);
}

.menu-item.active {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.menu-item.active svg {
  stroke: white;
}

.sidebar-user {
  padding: 16px;
  border-top: 1px solid var(--neutral-400);
  background-color: var(--neutral-200);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--neutral-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--neutral-900);
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-900);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logout-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.logout-btn:hover {
  background-color: var(--danger-light);
}

.logout-btn svg {
  stroke: var(--danger-text);
  width: 18px;
  height: 18px;
}

/* Header & Main Area Layout */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}

/* Desktop Sidebar Collapsed State */
@media (min-width: 993px) {
  .app-container.sidebar-collapsed .sidebar {
    transform: translateX(-100%) !important;
  }
  .app-container.sidebar-collapsed .main-wrapper {
    margin-left: 0 !important;
  }
}

.header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-400);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-title-area {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--neutral-900);
}

.header-subtitle {
  font-size: 12px;
  color: var(--neutral-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.school-badge {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Main Content Area */
.content-body {
  padding: 32px;
  flex: 1;
  animation: fadeIn var(--transition-normal);
}

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

/* Auth / Login Page styling */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, rgb(239, 246, 255) 0%, rgb(219, 234, 254) 100%);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-radius: 50%;
  top: -200px;
  right: -200px;
  z-index: 1;
}

.auth-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
  z-index: 1;
}

.auth-card {
  width: 460px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  padding: 48px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.auth-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.auth-logo .logo-icon {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.auth-logo .logo-text {
  font-size: 26px;
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--neutral-900);
}

.auth-desc {
  font-size: 14px;
  color: var(--neutral-600);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-800);
  display: flex;
  justify-content: space-between;
}

.form-input {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-400);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--neutral-900);
  background-color: white;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--neutral-200);
  color: var(--neutral-900);
  border: 1px solid var(--neutral-400);
}

.btn-secondary:hover {
  background-color: var(--neutral-400);
}

.btn-danger {
  background-color: var(--danger-light);
  color: var(--danger-text);
}

.btn-danger:hover {
  background-color: var(--danger);
  color: white;
}

.btn-icon {
  padding: 12px;
  border-radius: var(--radius-md);
  aspect-ratio: 1;
}

/* Quick demo logins block in Auth page */
.demo-accounts {
  border-top: 1px solid var(--neutral-400);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neutral-600);
  letter-spacing: 0.5px;
  text-align: center;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.btn-demo {
  background: white;
  border: 1px solid var(--neutral-400);
  font-size: 11px;
  padding: 8px 4px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--neutral-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-demo:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Dashboard styles */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.metric-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--neutral-400);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
}

.metric-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-600);
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--neutral-900);
}

.metric-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-blue {
  background-color: hsl(220, 100%, 95%);
  color: hsl(220, 90%, 56%);
}
.metric-purple {
  background-color: hsl(270, 100%, 95%);
  color: hsl(270, 90%, 56%);
}
.metric-indigo {
  background-color: hsl(238, 100%, 95%);
  color: hsl(238, 90%, 56%);
}
.metric-orange {
  background-color: hsl(35, 100%, 93%);
  color: hsl(35, 90%, 46%);
}

.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: white;
  border: 1px solid var(--neutral-400);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.card-header {
  padding: 24px;
  border-bottom: 1px solid var(--neutral-400);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-900);
}

.card-body {
  padding: 24px;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Table styles */
.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  padding: 16px 20px;
  background-color: var(--neutral-200);
  font-weight: 700;
  font-size: 12px;
  color: var(--neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--neutral-400);
}

.table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--neutral-900);
  border-bottom: 1px solid var(--neutral-400);
  vertical-align: middle;
}

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

.table tbody tr {
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
  background-color: var(--neutral-200);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success-text);
}

.badge-warning {
  background-color: var(--warning-light);
  color: var(--warning-text);
}

.badge-danger {
  background-color: var(--danger-light);
  color: var(--danger-text);
}

.badge-neutral {
  background-color: var(--neutral-400);
  color: var(--neutral-700);
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Custom visual rich editor (Visual editor design mockup) */
.rich-editor-mock {
  border: 1px solid var(--neutral-400);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
}

.editor-toolbar {
  padding: 8px 12px;
  background-color: var(--neutral-200);
  border-bottom: 1px solid var(--neutral-400);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.toolbar-btn {
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--neutral-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolbar-btn:hover {
  background-color: var(--neutral-400);
  color: var(--neutral-900);
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background-color: var(--neutral-400);
  margin: 0 4px;
  align-self: center;
}

.editor-textarea {
  min-height: 150px;
  padding: 16px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  border: none;
  width: 100%;
  resize: vertical;
  background-color: transparent;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--neutral-400);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-large {
  max-width: 900px;
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--neutral-400);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--neutral-600);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.modal-close:hover {
  background-color: var(--neutral-200);
}

.modal-body {
  padding: 28px;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--neutral-400);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Dashboard Action Buttons row */
.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.search-filter-box {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 600px;
}

/* Tab structure */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--neutral-400);
  margin-bottom: 24px;
  gap: 24px;
}

.tab-btn {
  padding: 12px 4px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--neutral-600);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--neutral-900);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Question view styles */
.question-item-card {
  padding: 20px;
  border: 1px solid var(--neutral-400);
  border-radius: var(--radius-md);
  background-color: white;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition-fast);
}

.question-item-card:hover {
  box-shadow: var(--shadow-md);
}

.question-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.q-meta-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.q-body-preview {
  font-size: 14px;
  line-height: 1.5;
}

.choices-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.choice-preview-item {
  padding: 8px 12px;
  border: 1px solid var(--neutral-400);
  border-radius: var(--radius-sm);
  background-color: var(--neutral-100);
  font-size: 13px;
  display: flex;
  gap: 8px;
}

.choice-preview-item.correct {
  border-color: var(--success);
  background-color: var(--success-light);
  color: var(--success-text);
  font-weight: 600;
}

/* Grid Layouts for structure page */
.nested-structure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .nested-structure-grid {
    grid-template-columns: 1fr;
  }
}

.structure-list-box {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--neutral-400);
  border-radius: var(--radius-md);
}

.structure-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--neutral-400);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

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

.structure-item:hover {
  background-color: var(--neutral-200);
}

.structure-item.selected {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  padding: 16px 20px;
  background-color: var(--neutral-900);
  color: white;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideIn var(--transition-normal);
  min-width: 250px;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success {
  background-color: var(--success);
}
.toast-error {
  background-color: var(--danger);
}

/* Matching question form styling */
.matching-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  gap: 12px;
  margin-bottom: 8px;
  align-items: center;
}

/* Upload area styling */
.upload-dropzone {
  border: 2px dashed var(--neutral-400);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  background-color: var(--neutral-100);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.upload-icon {
  margin-bottom: 12px;
  color: var(--neutral-600);
}

.upload-dropzone:hover .upload-icon {
  color: var(--primary);
}

/* ====================================================
   RESPONSIVE DESIGN STYLES & MOBILE OVERRIDES
   ==================================================== */

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Student Dashboard Grid */
.student-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 28px;
  margin-top: 24px;
}

/* Responsive Table scroll improvement */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Media Query: Tablets & Small Screens (<= 992px) */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0 !important;
  }
  #sidebar-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .header {
    padding: 0 20px;
  }
  .content-body {
    padding: 20px 16px;
  }
  .student-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Media Query: Mobile Devices (<= 576px) */
@media (max-width: 576px) {
  /* Auth Screen mobile spacing */
  .auth-card {
    width: calc(100% - 32px);
    max-width: 400px;
    padding: 32px 24px;
    gap: 20px;
    margin: 16px;
  }
  .demo-grid {
    grid-template-columns: 1fr;
  }
  
  /* Header layout vertical stack on small phones */
  .header {
    height: auto;
    min-height: var(--header-height);
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid var(--neutral-400);
    padding-top: 8px;
  }
  
  /* Structure grid */
  .nested-structure-grid {
    grid-template-columns: 1fr;
  }
  
  /* Form layout columns */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .matching-pair-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .matching-pair-row button {
    grid-column: span 2;
    margin-top: 4px;
  }
  
  /* Charts and dashboard lists */
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Responsive buttons font size */
  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* CBT Sidebar Toggle state */
.cbt-sidebar.collapsed {
  display: none !important;
}

/* Premium Word-style Equation Editor Styles */
.eq-editor-panel {
  background-color: var(--neutral-200);
  border-bottom: 1px solid var(--neutral-400);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideDown var(--transition-normal);
}

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

.eq-editor-panel.hidden {
  display: none !important;
}

.eq-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--neutral-400);
  padding-bottom: 8px;
  overflow-x: auto;
}

.eq-tab-btn {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--neutral-700);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.eq-tab-btn:hover {
  background-color: var(--neutral-400);
  color: var(--neutral-900);
}

.eq-tab-btn.active {
  background-color: var(--primary);
  color: white;
}

.eq-tab-pane {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 6px 2px;
}

.eq-tab-pane.active {
  display: grid;
}

.eq-btn {
  background-color: white;
  border: 1px solid var(--neutral-400);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  min-height: 48px;
  transition: all var(--transition-fast);
}

.eq-btn:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.eq-btn .mjx-container {
  margin: 0 !important;
}

/* ----------------------------------------------------
   New Features & PRD2 Enhancement Styles
   ---------------------------------------------------- */

/* Multi-School Switcher Dropdown */
.school-switcher-select {
  background-color: var(--neutral-100);
  border: 1px solid var(--neutral-400);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-900);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.school-switcher-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* Privileges Matrix Table & Toggle Switch */
.privilege-matrix-table th, .privilege-matrix-table td {
  text-align: center;
  padding: 12px 14px;
}
.privilege-matrix-table th:first-child, .privilege-matrix-table td:first-child {
  text-align: left;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--neutral-400);
  transition: .3s;
  border-radius: 24px;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-switch {
  background-color: var(--success);
}

input:checked + .slider-switch:before {
  transform: translateX(20px);
}

/* QR Code Display & Printable Card */
.qr-code-card {
  background: white;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
}

.qr-code-svg-wrap {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-300);
  box-shadow: var(--shadow-sm);
  display: inline-block;
}

/* Android Exam App Kiosk Mode Simulator */
.android-kiosk-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 20px;
}

.android-kiosk-frame {
  width: 100%;
  max-width: 440px;
  background: #000000;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 2px #334155;
  position: relative;
  overflow: hidden;
}

.kiosk-notch {
  width: 120px;
  height: 20px;
  background: #000000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

.kiosk-camera-lens {
  width: 10px;
  height: 10px;
  background: #1e293b;
  border-radius: 50%;
  border: 1px solid #475569;
}

.kiosk-screen {
  background: #f8fafc;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 720px;
}

.kiosk-status-bar {
  background: #0f172a;
  color: white;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kiosk-app-header {
  background: #1e1b4b;
  color: white;
  padding: 16px;
  text-align: center;
}

.kiosk-app-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kiosk-scan-box {
  border: 2px dashed #6366f1;
  background: #e0e7ff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.kiosk-scan-box:hover {
  transform: scale(1.02);
}

.kiosk-nav-bar {
  background: #0f172a;
  padding: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #94a3b8;
}

/* Cyber Security Defense Dashboard */
.cyber-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.cyber-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid #334155;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

.cyber-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Anti-Cheat Floating Watermark Overlay */
.cbt-anti-cheat-watermark {
  position: fixed;
  top: 40%;
  left: 20%;
  transform: rotate(-25deg);
  font-size: 26px;
  font-weight: 800;
  color: rgba(239, 68, 68, 0.12);
  pointer-events: none;
  z-index: 9999;
  user-select: none;
  white-space: nowrap;
  animation: floatWatermark 12s ease-in-out infinite alternate;
}

@keyframes floatWatermark {
  0% { transform: translate(0, 0) rotate(-25deg); }
  50% { transform: translate(120px, 80px) rotate(-20deg); }
  100% { transform: translate(-80px, 140px) rotate(-30deg); }
}

/* In-App Notifications Dropdown Popover */
.notif-popover {
  position: absolute;
  top: 55px;
  right: 20px;
  width: 340px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--neutral-400);
  z-index: 1000;
  overflow: hidden;
  display: none;
  animation: slideDown 0.2s ease;
}

.notif-popover.open {
  display: block;
}

.notif-header {
  padding: 12px 16px;
  background: var(--neutral-200);
  border-bottom: 1px solid var(--neutral-400);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--neutral-300);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background var(--transition-fast);
}

.notif-item:hover {
  background: var(--neutral-100);
}

.notif-item.unread {
  background: #eef2ff;
}

/* Bookmark Star Button */
.btn-bookmark {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-bookmark.active {
  color: #f59e0b;
}

.btn-bookmark:hover {
  transform: scale(1.2);
}

/* Item Analysis (Analisis Butir Soal) Cards */
.analysis-bar-outer {
  height: 10px;
  background: var(--neutral-300);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 4px;
}

.analysis-bar-inner {
  height: 100%;
  background: var(--primary);
  border-radius: 5px;
}

/* ----------------------------------------------------
   Landing Page Homepage & CAPTCHA Styles
   ---------------------------------------------------- */

.landing-page {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #0b0f19;
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.18) 0px, transparent 50%),
    radial-gradient(at 90% 20%, rgba(168, 85, 247, 0.18) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(14, 165, 233, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  color: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.landing-nav.scrolled {
  background: rgba(11, 15, 25, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(99, 102, 241, 0.3);
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.landing-nav-inner::-webkit-scrollbar {
  display: none;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 0;
}

.landing-brand .logo-icon {
  width: 38px;
  height: 38px;
  font-size: 15px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.landing-logo-text {
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  white-space: nowrap;
  line-height: 1;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.landing-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  transition: all 0.25s ease;
}

.landing-nav-link:hover {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.25);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.landing-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6);
}

.landing-nav-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.landing-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.landing-nav-toggle:hover,
.landing-nav-toggle.open {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.45);
}

.landing-nav-toggle svg {
  width: 20px;
  height: 20px;
}

.landing-hero {
  position: relative;
  padding: 90px 40px 110px;
  background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.22) 0%, transparent 65%);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  animation: heroBadgeFloat 4s ease-in-out infinite;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

@keyframes heroBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.2px;
  background: linear-gradient(135deg, #ffffff 20%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 22px;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.3));
}

.hero-desc {
  font-size: 17px;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 620px;
}

/* Landing Page Direct Login Card with CAPTCHA */
.landing-login-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 28px;
  padding: 32px;
  backdrop-filter: blur(24px);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.2);
}

/* CAPTCHA Challenge Container */
.captcha-box {
  background: rgba(30, 41, 59, 0.8);
  border: 1px dashed rgba(99, 102, 241, 0.5);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.captcha-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #38bdf8;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 8px 20px;
  border-radius: 8px;
  user-select: none;
  text-decoration: line-through;
  font-style: italic;
  border: 1px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25), inset 0 0 10px rgba(0,0,0,0.6);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.btn-refresh-captcha {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #38bdf8;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.btn-refresh-captcha:hover {
  color: #38bdf8;
  transform: rotate(180deg);
}

/* Section Titles & High-Contrast Gradient Classes */
.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.4));
}

.text-gradient-purple {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(192, 132, 252, 0.4));
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(251, 191, 36, 0.4));
}

.text-gradient-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(96, 165, 250, 0.4));
}

/* Feature Highlights Grid */
.features-section {
  padding: 90px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  margin-bottom: 12px;
}

.section-title {
  font-size: 42px;
  font-weight: 900;
  margin-top: 10px;
  color: #ffffff;
  letter-spacing: -0.8px;
  line-height: 1.25;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -5px rgba(99, 102, 241, 0.25);
  background: rgba(30, 41, 59, 0.9);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

/* Pricing Plans Cards */
.pricing-section {
  padding: 80px 40px;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 50px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: #a855f7;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.3);
  transform: scale(1.04);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: white;
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.price-val {
  font-size: 38px;
  font-weight: 900;
  color: white;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: #f1f5f9;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Testimonials & FAQ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-question {
  padding: 20px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.faq-answer {
  padding: 0 20px 20px;
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.65;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

@media (max-width: 1024px) {
  .landing-nav-link {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .landing-nav-inner {
    gap: 16px;
    padding: 0 16px;
    height: 56px;
  }

  .landing-nav-link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .landing-nav-cta {
    padding: 8px 16px;
  }
}

@media (max-width: 992px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 768px) {
  .landing-hero,
  .features-section,
  .pricing-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .landing-hero {
    gap: 28px;
  }

  .section-title {
    font-size: 30px;
  }

  .pricing-toggle-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-toggle-wrap .btn {
    width: 100%;
  }

  .testimonials-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 34px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .landing-login-card {
    padding: 24px 18px;
  }

  .landing-nav-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .landing-logo-text {
    font-size: 16px;
  }

  .landing-brand .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* WYSIWYG Visual Canvas Styles for Tampilan Menulis */
.wysiwyg-writing-canvas {
  min-height: 180px;
  padding: 16px;
  background: #ffffff;
  color: #1e293b;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--neutral-400);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  outline: none;
  margin-top: 8px;
  overflow-y: auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wysiwyg-writing-canvas:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wysiwyg-writing-canvas mjx-container,
.wysiwyg-writing-canvas .MathJax {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.wysiwyg-writing-canvas mjx-container:hover,
.wysiwyg-writing-canvas .MathJax:hover {
  background-color: var(--primary-light);
  outline: 1px dashed var(--primary);
}

.wysiwyg-writing-canvas img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.wysiwyg-writing-canvas table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.wysiwyg-writing-canvas table th,
.wysiwyg-writing-canvas table td {
  border: 1px solid var(--neutral-400);
  padding: 8px 12px;
  text-align: center;
}

/* Enhanced WYSIWYG Visual Writing Canvas & Word-Style Equation Editor */
.wysiwyg-writing-canvas {
  min-height: 180px;
  padding: 16px;
  background: #ffffff;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  outline: none;
  margin-top: 6px;
  overflow-y: auto;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wysiwyg-writing-canvas:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.wysiwyg-writing-canvas table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.wysiwyg-writing-canvas img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hover & Interactive Styles for Rendered MathJax Formulas in Visual Editor */
.wysiwyg-writing-canvas .mjx-container,
.wysiwyg-writing-canvas .MathJax,
.wysiwyg-writing-canvas .math-tex {
  display: inline-block;
  padding: 2px 6px;
  margin: 0 2px;
  border-radius: 4px;
  border: 1px dashed transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  vertical-align: middle;
}

.wysiwyg-writing-canvas .mjx-container:hover,
.wysiwyg-writing-canvas .MathJax:hover,
.wysiwyg-writing-canvas .math-tex:hover {
  border-color: #6366f1;
  background-color: #eef2ff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}


