/* CSS Styling for Psikotes Online - Glassmorphism Aesthetic matched to reference image */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-blue: #2354f5;
  --primary-indigo: #202b8d;
  --accent-cyan: #00d2ff;
  --accent-emerald: #10b981;
  --accent-yellow: #f59e0b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-gradient: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 35%, #ecfeff 70%, #f1f5f9 100%);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 20px 40px -15px rgba(29, 78, 216, 0.12), 0 8px 16px -6px rgba(0, 0, 0, 0.04);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 60px;
}

/* Ambient glow blobs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: #93c5fd;
  top: -80px;
  right: -60px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: #a7f3d0;
  bottom: 40px;
  left: -80px;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: #c7d2fe;
  top: 40%;
  right: 15%;
}

.app-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.glass-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 12px 24px;
  border-radius: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

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

.title-row h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.badge-tag {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-btn.icon-circle:hover {
  background: white;
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.16);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
}

/* HERO BANNER (Matches Top Blue Card with 3D Illustration) */
.hero-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #292882 40%, #312e81 70%, #1e3a8a 100%);
  border-radius: var(--radius-xl);
  padding: 34px 40px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(30, 27, 75, 0.45);
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(147, 197, 253, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 540px;
  position: relative;
  z-index: 2;
}

.pill-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 22px;
  color: #e2e8f0;
}

.hero-info-chips {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-chip i {
  width: 16px;
  height: 16px;
}

.required-notice {
  font-size: 0.8rem;
  color: #fde047;
  font-weight: 600;
}

/* 3D Stylized Avatar & Brain Illustration */
.hero-illustration {
  position: relative;
  width: 250px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-canvas {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.brain-graph {
  position: absolute;
  top: 10px;
  width: 140px;
  height: 110px;
  border: 2px dashed rgba(167, 139, 250, 0.5);
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
}

.brain-core {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border-radius: 50%;
  box-shadow: 0 0 18px #a855f7;
}

.brain-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.n-1 {
  top: 15%;
  left: 20%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.n-2 {
  top: 15%;
  right: 20%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.n-3 {
  bottom: 20%;
  left: 15%;
}

.n-4 {
  bottom: 20%;
  right: 15%;
}

.gear-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 6px;
  color: #f472b6;
  display: flex;
}

.gear-badge i {
  width: 18px;
  height: 18px;
}

.g-1 {
  top: -10px;
  right: -10px;
  animation: spinGear 12s linear infinite;
}

.g-2 {
  bottom: 10px;
  left: -14px;
  color: #a78bfa;
  animation: spinGear 16s linear infinite reverse;
}

@keyframes spinGear {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 3D Character Figurine */
.avatar-character {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.35));
}

.character-head {
  position: relative;
  width: 76px;
  height: 76px;
}

.hair {
  position: absolute;
  top: -4px;
  left: 6px;
  width: 64px;
  height: 48px;
  background: #451a03;
  border-radius: 36px 36px 12px 12px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.face {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 52px;
  height: 54px;
  background: #fcd34d;
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  border-radius: 28px;
  box-shadow: inset 0 -3px 6px rgba(194, 65, 12, 0.2);
}

.eyes {
  display: flex;
  justify-content: space-between;
  padding: 20px 12px 0;
}

.eyes span {
  width: 5px;
  height: 5px;
  background: #1e293b;
  border-radius: 50%;
}

.smile {
  width: 14px;
  height: 7px;
  border-bottom: 2.5px solid #c2410c;
  border-radius: 0 0 14px 14px;
  margin: 6px auto 0;
}

.character-body {
  width: 90px;
  height: 70px;
  background: linear-gradient(145deg, #4f46e5 0%, #3730a3 100%);
  border-radius: 28px 28px 10px 10px;
  position: relative;
  margin-top: -6px;
  border-top: 3px solid #e0e7ff;
}

.hand-pose {
  position: absolute;
  bottom: 12px;
  right: 18px;
  width: 22px;
  height: 28px;
  background: #fed7aa;
  border-radius: 12px;
  transform: rotate(20deg);
  box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.15);
}

/* EXAM GRID LAYOUT */
.exam-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  align-items: start;
}

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

  .hero-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .hero-info-chips {
    justify-content: center;
  }
}

/* GLASS CARDS */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* FORM ELEMENTS */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 8px;
}

.form-group label span {
  color: #ef4444;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-avatar-badge {
  position: absolute;
  left: 10px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #a5b4fc, #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.input-avatar-badge i {
  width: 16px;
  height: 16px;
}

.input-avatar-badge.wa-badge {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.input-with-icon input {
  padding-left: 50px !important;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea {
  width: 100%;
  padding: 13px 18px;
  background: rgba(241, 245, 249, 0.75);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus {
  background: white;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-row {
  display: flex;
  gap: 12px;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 18px;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.5;
}

.privacy-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--primary-blue);
}

.flex-1 {
  flex: 1;
}

/* BUTTONS */
.btn-primary-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 22px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px -4px rgba(37, 99, 235, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
}

.btn-primary-small:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-success-finish {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
}

.btn-success-finish:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.45);
}

/* QUESTION CARD (Matches Right Card in image) */
.tag-pill {
  background: #3b82f6;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.points-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #334155;
}

.question-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin: 18px 0 22px;
  letter-spacing: -0.01em;
}

/* OPTIONS LIST */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.8);
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.option-box:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.option-box.selected {
  background: linear-gradient(135deg, #e0f2fe 0%, #ecfeff 100%);
  border: 2px solid #0284c7;
  box-shadow: 0 6px 18px -4px rgba(2, 132, 199, 0.2);
}

.option-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.custom-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  background: white;
}

.option-box.selected .custom-radio {
  border-color: #0284c7;
  background: #0284c7;
  color: white;
}

.custom-radio i {
  width: 14px;
  height: 14px;
}

.option-label-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-text-main {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.badge-resiliensi {
  display: inline-flex;
  align-items: center;
  background: #0369a1;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  width: fit-content;
  margin-top: 4px;
}

.option-trend-icon {
  font-size: 1.4rem;
  color: #0284c7;
}

.question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}

.question-status-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.result-dialog {
  text-align: center;
}

.result-badge-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.35);
}

.result-badge-icon i {
  width: 36px;
  height: 36px;
}

.result-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
  margin-bottom: 24px;
}

.result-stats-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.stat-lbl {
  color: #64748b;
  font-weight: 500;
}

.badge-profil {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 12px;
}

.text-success {
  color: #10b981;
  font-size: 1.15rem;
}

/* ADMIN PANEL STYLING */
.admin-dashboard-card {
  max-width: 950px;
  width: 95%;
  padding: 28px;
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.admin-title-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-icon-ring {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}

.btn-icon-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-outline-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-outline-danger:hover {
  background: #fecaca;
}

.admin-login-card {
  max-width: 400px;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 24px;
}

.admin-login-header .admin-icon-ring {
  margin: 0 auto 12px;
}

.credential-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 16px;
}

.modal-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ADMIN TABS */
.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.tab-btn.active {
  background: #eff6ff;
  color: #2563eb;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.pane-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

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

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.search-box input {
  padding-left: 38px !important;
  padding-top: 10px;
  padding-bottom: 10px;
}

.pane-action-buttons {
  display: flex;
  gap: 10px;
}

.btn-excel-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  transition: all 0.2s;
}

.btn-excel-export:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.btn-download-soal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: white;
  border: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-download-soal:hover {
  transform: translateY(-1px);
}

/* CUSTOM TABLE */
.table-responsive {
  max-height: 400px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

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

.custom-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.custom-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.custom-table tr:hover td {
  background: #f8fafc;
}

/* QUESTION LIST IN ADMIN */
.questions-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-q-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.admin-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.admin-q-text {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.admin-q-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
}

.admin-q-opt {
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.add-question-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.option-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.option-input-row .opt-text {
  flex: 3;
}

.option-input-row .opt-score {
  flex: 1;
}

.option-input-row .opt-tag {
  flex: 2;
}

/* TOAST */
.toast-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: white;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-popup.show {
  transform: translateY(0);
  opacity: 1;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* SERVER STATUS BADGE */
.badge-server {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.badge-server.online {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-server.offline {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

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

@media (max-width: 640px) {
  .app-wrapper {
    padding: 14px 12px;
  }

  .glass-nav {
    padding: 12px;
    gap: 10px;
  }

  .nav-brand {
    gap: 8px;
    min-width: 0;
  }

  .logo-box {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }

  .title-row {
    flex-wrap: wrap;
    gap: 4px 6px;
  }

  .title-row h1 {
    font-size: 0.98rem;
  }

  .subtitle {
    font-size: 0.68rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-btn.icon-circle {
    width: 36px;
    height: 36px;
  }

  .hero-banner {
    padding: 26px 20px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-illustration {
    transform: scale(0.82);
    margin: -18px 0;
  }

  .glass-card {
    padding: 20px 16px;
  }

  .form-row,
  .question-footer,
  .admin-header-row {
    flex-wrap: wrap;
  }

  .form-row > .form-group {
    min-width: 100%;
  }

  .question-status-info {
    order: -1;
    width: 100%;
    text-align: center;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-card,
  .admin-dashboard-card {
    padding: 20px 14px;
    width: 100%;
    max-width: 100%;
  }

  .pane-action-buttons {
    flex-wrap: wrap;
  }

  .pane-action-buttons > button {
    flex: 1 1 auto;
  }

  .option-input-row {
    flex-wrap: wrap;
  }

  .option-input-row .opt-text,
  .option-input-row .opt-tag {
    flex: 1 1 100%;
  }

  .option-input-row .opt-score {
    flex: 1 1 80px;
  }

  .admin-q-options {
    grid-template-columns: 1fr;
  }
}
