.learner-onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
  isolation: isolate;
}

.learner-onboarding-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.learner-onboarding-modal {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 24px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.onboarding-header {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  padding: 30px;
  border-radius: 24px 24px 0 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.onboarding-header h2 {
  color: #ffffff;
  font-size: 28px;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.onboarding-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin: 0;
}

.onboarding-content {
  padding: 40px;
}

.onboarding-step {
  margin-bottom: 30px;
}

.onboarding-step h3 {
  color: #0ea5e9;
  font-size: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-icon {
  font-size: 24px;
}

.goal-input-group {
  margin-bottom: 20px;
}

.goal-input-group label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-weight: 500;
}

.goal-input-group input,
.goal-input-group select,
.goal-input-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.goal-input-group input:focus,
.goal-input-group select:focus,
.goal-input-group textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.goal-input-group select option {
  background: #1a1a2e;
  color: #ffffff;
}

.philosophy-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.philosophy-option {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.philosophy-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #0ea5e9;
  transform: translateY(-2px);
}

.philosophy-option.selected {
  background: rgba(14, 165, 233, 0.2);
  border-color: #0ea5e9;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.philosophy-option h4 {
  color: #ffffff;
  margin: 0 0 8px 0;
  font-size: 18px;
}

.philosophy-option p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 14px;
}

.recommendation-display {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  margin-top: 20px;
}

.recommended-system {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(59, 130, 246, 0.2));
  border-radius: 12px;
}

.recommended-system-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.recommended-system h3 {
  color: #ffffff;
  font-size: 24px;
  margin: 0 0 10px 0;
}

.recommended-system .confidence-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  border-radius: 20px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.rationale-section {
  margin-bottom: 30px;
}

.rationale-section h4 {
  color: #0ea5e9;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.rationale-item {
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #0ea5e9;
  border-radius: 8px;
  margin-bottom: 12px;
}

.rationale-item strong {
  color: #0ea5e9;
  display: block;
  margin-bottom: 5px;
}

.rationale-item p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.6;
}

.learning-path {
  margin-bottom: 30px;
}

.learning-path h4 {
  color: #0ea5e9;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.path-phase {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 15px;
  border-left: 4px solid #3b82f6;
}

.path-phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.path-phase h5 {
  color: #ffffff;
  font-size: 16px;
  margin: 0;
}

.path-phase .estimated-time {
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
}

.path-phase p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 10px 0;
  font-size: 14px;
}

.path-phase .system-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid #0ea5e9;
  border-radius: 16px;
  color: #0ea5e9;
  font-size: 12px;
  font-weight: 600;
}

.alternatives-section h4 {
  color: #0ea5e9;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.alternative-option {
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 12px;
}

.alternative-option h5 {
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 8px 0;
}

.alternative-option p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 5px 0;
  font-size: 14px;
}

.alternative-option .when-to-switch {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-style: italic;
}

.onboarding-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.onboarding-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.onboarding-btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  color: #ffffff;
}

.onboarding-btn-primary:hover {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.onboarding-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.onboarding-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.onboarding-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
  font-size: 16px;
}

.preference-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.preference-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.preference-checkbox label {
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 768px) {
  .learner-onboarding-modal {
    width: 95%;
    max-height: 95vh;
  }

  .onboarding-content {
    padding: 20px;
  }

  .philosophy-selector {
    grid-template-columns: 1fr;
  }

  .onboarding-actions {
    flex-direction: column;
  }

  .onboarding-btn {
    width: 100%;
  }
}
