/* Onboarding Wizard Styles */

.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

/* Initial Prompt Styles */
.onboarding-prompt-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.prompt-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.onboarding-prompt-card h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #2d3748;
}

.onboarding-prompt-card p {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 30px;
  line-height: 1.6;
}

.prompt-benefits {
  margin: 30px 0;
  text-align: left;
}

.benefit {
  display: flex;
  align-items: center;
  margin: 15px 0;
  padding: 10px;
  background: #f7fafc;
  border-radius: 8px;
}

.benefit-icon {
  font-size: 1.5rem;
  margin-right: 15px;
}

.prompt-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.prompt-note {
  color: #718096;
  font-style: italic;
}

/* Main Wizard Styles */
.wizard-container {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.wizard-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wizard-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.wizard-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.wizard-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Progress Indicator */
.wizard-progress {
  padding: 20px 30px;
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.step-indicators {
  display: flex;
  justify-content: space-between;
  max-width: 200px;
  margin: 0 auto;
}

.step-indicator {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #a0aec0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.3s ease;
}

.step-indicator.active {
  background: #667eea;
  color: white;
}

.step-indicator.completed {
  background: #48bb78;
  color: white;
}

/* Content Area */
.wizard-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #2d3748;
}

.step-content > p {
  color: #4a5568;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Provider Selection */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.provider-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.provider-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.provider-card.selected {
  border-color: #667eea;
  background: #f0f4ff;
}

.provider-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.provider-logo {
  font-size: 2rem;
  margin-right: 10px;
}

.provider-card h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #2d3748;
  flex: 1;
}

.provider-badge {
  background: #667eea;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
}

.provider-badge.recommended {
  background: #48bb78;
}

.provider-features {
  margin-bottom: 15px;
}

.feature {
  color: #4a5568;
  margin: 8px 0;
  font-size: 0.9rem;
}

.provider-checkbox {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* API Key Input */
.api-keys-form {
  space-y: 30px;
}

.api-key-section {
  margin-bottom: 30px;
  padding: 25px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f7fafc;
}

.provider-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.provider-info h4 {
  margin: 0;
  color: #2d3748;
}

.get-key-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.get-key-link:hover {
  text-decoration: underline;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.api-key-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.api-key-input:focus {
  outline: none;
  border-color: #667eea;
}

.btn-test {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-test:hover {
  background: #5a67d8;
}

.btn-test:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

.test-result {
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.test-result.success {
  background: #f0fff4;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.test-result.error {
  background: #fff5f5;
  color: #742a2a;
  border: 1px solid #fed7d7;
}

.provider-help {
  margin-top: 15px;
}

.provider-help details {
  cursor: pointer;
}

.provider-help summary {
  color: #667eea;
  font-weight: 500;
  padding: 5px 0;
}

.provider-help ol {
  margin: 10px 0 0 20px;
  color: #4a5568;
}

.provider-help li {
  margin: 5px 0;
  font-size: 0.9rem;
}

/* Configuration Section */
.config-section {
  margin-bottom: 30px;
}

.config-group {
  margin-bottom: 20px;
}

.config-group label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.config-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
}

.config-select:focus {
  outline: none;
  border-color: #667eea;
}

.config-group small {
  display: block;
  color: #718096;
  margin-top: 5px;
  font-size: 0.85rem;
}

/* Test Chat */
.test-section {
  margin-top: 30px;
}

.test-section h4 {
  color: #2d3748;
  margin-bottom: 15px;
}

.test-chat {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.test-messages {
  height: 200px;
  overflow-y: auto;
  padding: 15px;
  background: #f7fafc;
}

.test-message {
  margin: 10px 0;
  padding: 10px 15px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
}

.test-message.user {
  background: #667eea;
  color: white;
  margin-left: auto;
}

.test-message.bot {
  background: white;
  color: #2d3748;
  border: 1px solid #e2e8f0;
}

.test-input-group {
  display: flex;
  padding: 15px;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.test-input-group input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  margin-right: 10px;
}

.test-input-group input:focus {
  outline: none;
  border-color: #667eea;
}

.btn-send {
  background: #667eea;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
}

.btn-send:hover {
  background: #5a67d8;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a0aec0;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Completion Step */
.completion-step {
  text-align: center;
}

.completion-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.setup-summary {
  background: #f7fafc;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  text-align: left;
}

.setup-summary h4 {
  color: #2d3748;
  margin-bottom: 20px;
}

.summary-grid {
  display: grid;
  gap: 15px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.summary-icon {
  font-size: 1.5rem;
}

.summary-detail {
  color: #4a5568;
  font-size: 0.9rem;
}

.next-steps {
  margin: 30px 0;
  text-align: left;
}

.next-steps h4 {
  color: #2d3748;
  margin-bottom: 20px;
}

.next-step {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 15px 0;
  padding: 15px;
  background: #f7fafc;
  border-radius: 8px;
}

.step-number {
  background: #667eea;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.completion-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

/* Footer */
.wizard-footer {
  padding: 20px 30px;
  background: #f7fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: white;
  color: #4a5568;
  border: 2px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: #667eea;
  color: #667eea;
}

/* Step Note */
.step-note {
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.step-note p {
  margin: 0;
  color: #f57c00;
  font-size: 0.9rem;
}

/* Success Overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.success-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.success-card h2 {
  color: #2d3748;
  margin-bottom: 15px;
}

.success-card p {
  color: #4a5568;
  margin-bottom: 25px;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .wizard-container {
    width: 95%;
    height: 95vh;
  }
  
  .wizard-header {
    padding: 20px;
  }
  
  .wizard-content {
    padding: 20px;
  }
  
  .provider-grid {
    grid-template-columns: 1fr;
  }
  
  .prompt-actions {
    flex-direction: column;
  }
  
  .completion-actions {
    flex-direction: column;
  }
  
  .wizard-footer {
    padding: 15px 20px;
  }
  
  .onboarding-prompt-card {
    margin: 20px;
    padding: 30px;
  }
} 