/* Orion Path AI - Application Stylesheet (assets/css/app.css) */

:root {
  --bg-main: #0B0F19;
  --bg-card: rgba(17, 24, 39, 0.75);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(99, 102, 241, 0.4);
  --primary: #6366F1;
  --primary-light: #818CF8;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --secondary: #10B981;
  --secondary-glow: rgba(16, 185, 129, 0.25);
  --accent: #F59E0B;
  --danger: #EF4444;
  --text-main: #F8FAFC;
  --text-muted: #CBD5E1;
  --font-family: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #050811;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15.5px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Galaxy / Constellation Effect */
.starlit-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.09) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
              #050811;
  background-size: 200% 200%;
  animation: nebulaShift 25s ease-in-out infinite alternate;
}

@keyframes nebulaShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.stars-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.8) 1.5px, transparent 1.5px),
                    radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 400px 400px, 250px 250px;
  opacity: 0.35;
}

/* Layout Container */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px 20px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 20px;
}

/* Wizard Steps Indicator */
.wizard-progress {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.wizard-step-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.wizard-step-pill.active {
  background: rgba(99, 102, 241, 0.15);
  color: #C7D2FE;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.wizard-step-pill.completed {
  background: rgba(16, 185, 129, 0.1);
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.3);
}

.wizard-step-pill.skipped {
  opacity: 0.45;
  border-style: dashed;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

/* Screens */
.screen {
  display: none;
  animation: fadeIn 0.3s ease-out forwards;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards & Sections */
.card-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.results-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
}

.results-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-light);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Sub-Tabs in Dashboard */
.sub-tab-container {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.sub-tab-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sub-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
}

.sub-tab-btn.active {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

/* Dashboard 2-column Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  min-width: 0;
}

.dashboard-grid > div {
  min-width: 0;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Career Hypothesis Card */
.hypothesis-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hypothesis-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signal-strong {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.signal-medium {
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.signal-exploring {
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Chatbot Widget */
.chat-widget {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
}

.chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 90%;
}

.chat-message.bot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #E2E8F0;
  align-self: flex-start;
}

.chat-message.user {
  background: rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #FFFFFF;
  align-self: flex-end;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  font-size: 13px;
  outline: none;
}

.chat-quick-queries {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border-color);
}

.quick-query-btn {
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-query-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #C7D2FE;
  border-color: var(--primary);
}

/* RIASEC Bars */
.riasec-bar-container {
  margin-bottom: 12px;
}
.riasec-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}
.riasec-bar-bg {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.riasec-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #6366F1, #818CF8);
  transition: width 0.6s ease;
}

/* Table */
.premium-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.premium-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.premium-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Modals & Dialogs */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog {
  background: #0d1330;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(99, 102, 241, 0.18);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}

.parent-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 11px 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12.5px;
  line-height: 1.45;
  color: #E2E8F0;
  min-width: 0;
  word-break: break-word;
}

.parent-radio-card:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

.chip-select-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  color: #cbd5e1;
}

.chip-select-label:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: #fff;
}

.chip-select-label input[type="checkbox"] {
  accent-color: var(--primary);
  cursor: pointer;
}

.task-item-badge {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #e2e8f0;
}

/* ==================== VISUAL FEATURE CARDS & SECTION BANNERS ==================== */
.visual-feature-card {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
}

@media (max-width: 640px) {
  .visual-feature-card {
    grid-template-columns: 1fr;
  }
}

.section-visual-banner {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  background: rgba(17, 24, 39, 0.75);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.panorama-banner {
  width: 100%;
  min-height: 220px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.panorama-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11, 15, 25, 0.94) 0%, rgba(11, 15, 25, 0.75) 55%, rgba(11, 15, 25, 0.25) 100%);
}

.panorama-content {
  position: relative;
  z-index: 2;
  padding: 24px 28px;
  max-width: 660px;
}

/* ==================== ACCESSIBILITY: PARENT FONT ZOOM (DỄ ĐỌC CHO PHỤ HUYNH) ==================== */
body.parent-font-zoom {
  font-size: 18px !important;
  line-height: 1.75 !important;
}

body.parent-font-zoom .form-label {
  font-size: 16.5px !important;
}

body.parent-font-zoom .form-control,
body.parent-font-zoom select,
body.parent-font-zoom textarea {
  font-size: 17px !important;
  padding: 14px 18px !important;
}

body.parent-font-zoom .wizard-step-pill {
  font-size: 14.5px !important;
  padding: 9px 18px !important;
}

body.parent-font-zoom .sub-tab-btn {
  font-size: 16px !important;
  padding: 13px 20px !important;
}

body.parent-font-zoom .btn {
  font-size: 16px !important;
  padding: 13px 22px !important;
}

body.parent-font-zoom p,
body.parent-font-zoom span,
body.parent-font-zoom label {
  line-height: 1.75 !important;
}

body.parent-font-zoom .results-section h3 {
  font-size: 20px !important;
}

/* ==================== PRINT STYLESHEET ==================== */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  .starlit-bg,
  .stars-overlay,
  header,
  .wizard-progress,
  .chat-widget,
  .modal-overlay,
  .btn,
  #fast-track-upgrade-banner,
  #parent-mode-welcome-banner,
  .sub-tab-container,
  #local-cache-restore-alert,
  .dashboard-grid > div:last-child {
    display: none !important;
  }
  .app-container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .card-box, .hypothesis-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    color: #0f172a !important;
    page-break-inside: avoid;
  }
  h1, h2, h3, h4, strong {
    color: #0f172a !important;
  }
  p, span, div {
    color: #334155 !important;
  }
  .tab-pane {
    display: block !important;
  }
}

/* ==================== THEME MODE (LIGHT / DARK) ==================== */
html.light {
  --bg-main: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.95);
  --border-color: rgba(15, 23, 42, 0.12);
  --border-highlight: rgba(99, 102, 241, 0.45);
  --primary: #4F46E5;
  --primary-light: #6366F1;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --secondary: #059669;
  --secondary-glow: rgba(5, 150, 105, 0.15);
  --accent: #D97706;
  --danger: #DC2626;
  --text-main: #0F172A;
  --text-muted: #475569;
}

html.light body {
  background-color: #F1F5F9;
  color: var(--text-main);
}

html.light .starlit-bg {
  background: radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.07) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 60%),
              #F8FAFC;
}

html.light .stars-overlay {
  opacity: 0.12;
  filter: invert(1);
}

html.light .card-box,
html.light .hypothesis-card,
html.light .modal-content {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

html.light .form-control {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

html.light .form-control:focus {
  border-color: #6366F1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

html.light .form-label {
  color: #1E293B !important;
}

html.light .btn-secondary {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #1E293B !important;
}

html.light .btn-secondary:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
}

html.light .wizard-step-pill {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #64748B !important;
}

html.light .wizard-step-pill.active {
  background: #EEF2FF !important;
  border-color: #6366F1 !important;
  color: #4338CA !important;
}

html.light .sub-tab-btn {
  color: #64748B !important;
}

html.light .sub-tab-btn.active {
  color: #4338CA !important;
  background: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html.light .brand-logo span {
  color: #0F172A !important;
}

html.light .panorama-overlay {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 55%, rgba(255, 255, 255, 0.3) 100%) !important;
}

html.light .panorama-content h2,
html.light .panorama-content h3 {
  color: #0F172A !important;
}

html.light .panorama-content p {
  color: #334155 !important;
}

/* Dedicated Light Mode Banners for Tabs in Screen 5 */
html.light #tab-content-hypotheses .panorama-banner {
  background-image: url('../../image/galaxy_careers_light.png') !important;
}
html.light #tab-content-experiments .panorama-banner {
  background-image: url('../../image/career_experiments_lab_light.png') !important;
}
html.light #tab-content-academic .panorama-banner {
  background-image: url('../../image/academic_pathways_gdpt_light.png') !important;
}
html.light #tab-content-family .panorama-banner {
  background-image: url('../../image/mobile_parent_child_light.png') !important;
}

html.light .parent-radio-card {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #1E293B !important;
}

html.light .parent-radio-card:hover {
  background: #EEF2FF !important;
  border-color: #818CF8 !important;
}

html.light .chip-select-label {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}

html.light .chip-select-label:hover {
  background: #EEF2FF !important;
  color: #4338CA !important;
}

html.light .chat-widget {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

html.light .chat-message.user {
  background: #4F46E5 !important;
  color: #FFFFFF !important;
}

html.light .chat-message.bot {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-color: #E2E8F0 !important;
}

html.light .modal-header {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

html.light .modal-footer {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

/* Global Light Mode Contrast & Readability Enhancements */
html.light h1, 
html.light h2, 
html.light h3, 
html.light h4, 
html.light h5, 
html.light h6 {
  color: #0F172A !important;
}

html.light [style*="color: #fff"],
html.light [style*="color:#fff"],
html.light [style*="color: #FFFFFF"],
html.light [style*="color:#FFFFFF"],
html.light [style*="color: white"] {
  color: #0F172A !important;
}

html.light [style*="color: #F8FAFC"],
html.light [style*="color:#F8FAFC"],
html.light [style*="color: #cbd5e1"],
html.light [style*="color:#cbd5e1"],
html.light [style*="color: #CBD5E1"],
html.light [style*="color:#CBD5E1"],
html.light [style*="color: #E2E8F0"],
html.light [style*="color:#E2E8F0"],
html.light [style*="color: #e2e8f0"],
html.light [style*="color:#e2e8f0"] {
  color: #334155 !important;
}

/* Case-insensitive text contrast overrides */
html.light [style*="color: #f8fafc" i],
html.light [style*="color:#f8fafc" i] {
  color: #0F172A !important;
}

html.light [style*="color: #94a3b8" i],
html.light [style*="color:#94a3b8" i],
html.light [style*="color: #64748b" i],
html.light [style*="color:#64748b" i] {
  color: #475569 !important;
}

/* Light blue / indigo pastels -> Deep sapphire */
html.light [style*="color: #C7D2FE" i],
html.light [style*="color: #A5B4FC" i],
html.light [style*="color: #93C5FD" i],
html.light [style*="color: #BAE6FD" i],
html.light [style*="color: #38BDF8" i],
html.light [style*="color: #818CF8" i] {
  color: #2563EB !important;
}

/* Light green / mint pastels -> Deep emerald */
html.light [style*="color: #6EE7B7" i],
html.light [style*="color: #A7F3D0" i],
html.light [style*="color: #BBF7D0" i],
html.light [style*="color: #34D399" i] {
  color: #047857 !important;
}

/* Light amber / yellow pastels -> Deep amber */
html.light [style*="color: #FCD34D" i],
html.light [style*="color: #FBBF24" i],
html.light [style*="color: #F59E0B" i],
html.light [style*="color: #FED7AA" i] {
  color: #92400E !important;
}

/* Light rose / pink pastels -> Deep crimson */
html.light [style*="color: #FBCFE8" i],
html.light [style*="color: #F43F5E" i],
html.light [style*="color: #F87171" i] {
  color: #9F1239 !important;
}

/* Light purple pastels -> Deep purple */
html.light [style*="color: #E9D5FF" i],
html.light [style*="color: #C084FC" i] {
  color: #6B21A8 !important;
}

/* Light backgrounds for cards and dark translucent containers */
html.light [style*="background: rgba(255,255,255,0.03)"],
html.light [style*="background: rgba(255, 255, 255, 0.03)"],
html.light [style*="background: rgba(255,255,255,0.02)"],
html.light [style*="background: rgba(255, 255, 255, 0.02)"],
html.light [style*="background: rgba(255,255,255,0.04)"],
html.light [style*="background: rgba(255, 255, 255, 0.04)"],
html.light [style*="background:rgba(255,255,255,0.03)"],
html.light [style*="background:rgba(255,255,255,0.02)"],
html.light [style*="background:rgba(255,255,255,0.04)"],
html.light [style*="background: rgba(0,0,0,0.2)"],
html.light [style*="background: rgba(0, 0, 0, 0.2)"],
html.light [style*="background: rgba(0,0,0,0.35)"],
html.light [style*="background: rgba(15, 23, 42, 0.6)"] {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

/* Specific Component Overrides in Light Mode */
html.light form label:has(input[name="target_orientations"]) {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

html.light form label:has(input[name="target_orientations"]:checked) {
  background: #EEF2FF !important;
  border-color: #818CF8 !important;
}

html.light form label:has(input[name="target_orientations"]) div {
  color: #0F172A !important;
}

html.light form label:has(input[name="target_orientations"]) div[style*="font-size: 11px"] {
  color: #475569 !important;
}

html.light #riasec-questions-container > div {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

html.light #riasec-questions-container strong {
  color: #4F46E5 !important;
}

html.light #riasec-questions-container label {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}

html.light #riasec-questions-container label:hover {
  background: #EEF2FF !important;
}

html.light #dashboard-next-action-card .card-box {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  border-left: 4px solid #4F46E5 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

html.light #dashboard-next-action-card [style*="background: rgba(99, 102, 241"] {
  background: #EEF2FF !important;
  border-color: #C7D2FE !important;
}

html.light .task-item-badge {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #1E293B !important;
}

html.light .signal-badge {
  background: #EEF2FF !important;
  color: #3730A3 !important;
  border-color: #C7D2FE !important;
}

html.light .sub-tab-container {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}

html.light .sub-tab-btn {
  color: #475569 !important;
}

html.light .sub-tab-btn.active {
  background: #FFFFFF !important;
  color: #4338CA !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html.light .btn-primary,
html.light .btn-primary * {
  color: #FFFFFF !important;
}

/* ==================== THEME SLIDER SWITCH COMPONENT ==================== */
.theme-switch-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.theme-slider .switch-icon-sun {
  font-size: 13px;
  color: #F59E0B;
  transition: opacity 0.3s ease;
  opacity: 0.4;
}

.theme-slider .switch-icon-moon {
  font-size: 13px;
  color: #93C5FD;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.theme-slider::after {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.theme-switch input:checked + .theme-slider {
  background-color: #E0E7FF;
  border-color: #6366F1;
}

.theme-switch input:checked + .theme-slider::after {
  transform: translateX(24px);
  background-color: #4F46E5;
}

.theme-switch input:checked + .theme-slider .switch-icon-sun {
  opacity: 1;
}

.theme-switch input:checked + .theme-slider .switch-icon-moon {
  opacity: 0.3;
}

.theme-switch-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}


/* ==========================================================================
   EXPERT UPGRADES: INSIDER VOICE, TRANSFERABLE SKILLS & EMOTIONAL PULSE
   ========================================================================== */

/* 1. Industry Insider Voice (Micro-Mentorship) */
.insider-voice-card {
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.insider-voice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.insider-voice-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #C7D2FE;
  display: flex;
  align-items: center;
  gap: 6px;
}

.insider-icon {
  font-size: 18px;
  color: #818CF8;
}

.insider-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.insider-quote-bubble {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #818CF8;
  border-radius: 8px;
  padding: 12px 14px 12px 28px;
  margin-bottom: 12px;
}

.insider-quote-icon {
  position: absolute;
  top: 4px;
  left: 8px;
  font-size: 24px;
  line-height: 1;
  color: #818CF8;
  font-family: Georgia, serif;
}

.insider-quote-text {
  font-size: 12.5px;
  font-style: italic;
  color: #E2E8F0;
  line-height: 1.55;
  margin: 0 0 6px 0;
}

.insider-author {
  font-size: 11px;
  font-weight: 700;
  color: #93C5FD;
}

.insider-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.insider-detail-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
}

.insider-detail-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.insider-detail-desc {
  font-size: 11.5px;
  color: #94A3B8;
  line-height: 1.45;
  margin: 0;
}

/* 2. Transferable Skills Matrix & Career Pivot Map */
.pivot-map-container {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.pivot-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.pivot-map-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #6EE7B7;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pivot-status-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pivot-lead-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.transferable-skills-row {
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
}

.transferable-skills-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #C7D2FE;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.transferable-skills-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.portable-skill-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 7px 10px;
}

.portable-skill-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
  display: block;
}

.portable-skill-level {
  font-size: 10px;
  font-weight: 700;
  color: #34D399;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: inline-block;
}

.portable-skill-tooltip {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.35;
}

.career-pivots-section {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.career-pivots-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #FCD34D;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.career-pivots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.career-pivot-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
}

.pivot-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.pivot-career-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.pivot-ease-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  white-space: nowrap;
}

.pivot-item-why {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.35;
}

/* 3. Emotional Pulse Selector & Badges */
.pulse-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .pulse-select-grid {
    grid-template-columns: 1fr;
  }
}

.pulse-select-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.pulse-select-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pulse-select-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.4);
}

.pulse-select-card.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: #6366F1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.pulse-select-card[data-pulse="ENERGIZED"].active {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.pulse-select-card[data-pulse="DRAINING"].active {
  background: rgba(239, 68, 68, 0.12);
  border-color: #EF4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.pulse-emoji {
  font-size: 26px;
  margin-bottom: 4px;
}

.pulse-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.pulse-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.pulse-feedback-alert {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #E2E8F0;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pulse-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pulse-badge-energized {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pulse-badge-rewarding {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.pulse-badge-draining {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   LIGHT MODE OVERRIDES FOR EXPERT UPGRADES
   ========================================================================== */
html.light .insider-voice-card {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

html.light .insider-voice-title {
  color: #1E293B;
}

html.light .insider-badge {
  background: #EEF2FF;
  color: #4F46E5;
  border-color: #C7D2FE;
}

html.light .insider-quote-bubble {
  background: #FFFFFF;
  border-left-color: #4F46E5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

html.light .insider-quote-text {
  color: #1E293B;
}

html.light .insider-author {
  color: #3B82F6;
}

html.light .insider-detail-col {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

html.light .insider-detail-title {
  color: #0F172A;
}

html.light .insider-detail-desc {
  color: #475569;
}

html.light .pivot-map-container {
  background: #F0FDF4;
  border-color: #A7F3D0;
}

html.light .pivot-map-title {
  color: #065F46;
}

html.light .pivot-status-tag {
  background: #DCFCE7;
  color: #15803D;
  border-color: #86EFAC;
}

html.light .pivot-lead-text {
  color: #334155;
}

html.light .transferable-skills-row {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
}

html.light .transferable-skills-label {
  color: #1E293B;
}

html.light .portable-skill-chip {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

html.light .portable-skill-name {
  color: #0F172A;
}

html.light .portable-skill-level {
  color: #059669;
}

html.light .portable-skill-tooltip {
  color: #475569;
}

html.light .career-pivots-section {
  border-top-color: #CBD5E1;
}

html.light .career-pivots-title {
  color: #92400E;
}

html.light .career-pivot-item {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

html.light .pivot-career-name {
  color: #0F172A;
}

html.light .pivot-ease-badge {
  background: #FEF3C7;
  color: #B45309;
}

html.light .pivot-item-why {
  color: #475569;
}

html.light .pulse-select-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

html.light .pulse-select-card:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}

html.light .pulse-select-card.active {
  background: #EEF2FF;
  border-color: #4F46E5;
}

html.light .pulse-select-card[data-pulse="ENERGIZED"].active {
  background: #ECFDF5;
  border-color: #10B981;
}

html.light .pulse-select-card[data-pulse="DRAINING"].active {
  background: #FEF2F2;
  border-color: #EF4444;
}

html.light .pulse-title {
  color: #0F172A;
}

html.light .pulse-sub {
  color: #475569;
}

html.light .pulse-feedback-alert {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

html.light .pulse-badge-energized {
  background: #D1FAE5;
  color: #065F46;
  border-color: #6EE7B7;
}

html.light .pulse-badge-rewarding {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FCD34D;
}

html.light .pulse-badge-draining {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #FCA5A5;
}
