/**
 * Setup Wizard Styles
 * Modern, clean design with smooth transitions
 */

/* Modal Overlay */
#setup-wizard-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: wizardFadeIn 0.3s ease-out;
}

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

/* Modal Card */
.wizard-modal-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: wizardSlideUp 0.3s ease-out;
}

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

/* Progress Indicator */
.wizard-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px 32px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.wizard-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.3s ease;
}

.wizard-progress-dot.active {
  background: #1a73e8;
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.2);
}

.wizard-progress-dot.completed {
  background: #34a853;
}

/* Content Container */
#wizard-content {
  padding: 32px;
  min-height: 300px;
}

/* Step Layouts */
.wizard-step {
  animation: wizardStepIn 0.3s ease-out;
}

@keyframes wizardStepIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wizard-step-title {
  font-size: 28px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
  text-align: center;
}

.wizard-step-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 24px 0;
  text-align: center;
}

/* Step 1: Welcome */
.wizard-welcome-content {
  text-align: center;
  margin: 32px 0;
}

.wizard-welcome-icon {
  font-size: 72px;
  margin-bottom: 24px;
  animation: wizardBounce 1s ease-in-out infinite;
}

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

.wizard-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  text-align: left;
}

.wizard-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.wizard-feature-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.wizard-feature strong {
  display: block;
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 4px;
}

.wizard-feature p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Step 2: Accounts */
.wizard-accounts-added {
  background: #f0fdf4;
  border: 2px solid #34a853;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.wizard-success-icon {
  width: 48px;
  height: 48px;
  background: #34a853;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  font-weight: bold;
}

.wizard-accounts-added h3 {
  font-size: 18px;
  font-weight: 600;
  color: #166534;
  margin: 0 0 16px 0;
}

.wizard-account-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.wizard-accounts-added .wizard-account-card {
  margin-bottom: 12px;
}

.wizard-accounts-added .wizard-account-card:last-child {
  margin-bottom: 0;
}

.wizard-account-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.wizard-account-info {
  flex: 1;
  text-align: left;
}

.wizard-account-email {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
}

.wizard-account-provider {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.wizard-account-check {
  font-size: 20px;
  color: #34a853;
}

/* Account Options */
.wizard-account-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.wizard-account-option {
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-account-option:hover {
  border-color: #1a73e8;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
  transform: translateY(-2px);
}

.wizard-account-option-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 8px;
}

.wizard-account-option-content {
  flex: 1;
  text-align: left;
}

.wizard-account-option-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.wizard-account-option-content p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.wizard-account-option-arrow {
  font-size: 20px;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.wizard-account-option:hover .wizard-account-option-arrow {
  color: #1a73e8;
  transform: translateX(4px);
}

.wizard-add-another {
  text-align: center;
  margin-top: 16px;
}

.wizard-add-another a {
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.wizard-add-another a:hover {
  text-decoration: underline;
}

/* Step 3: Ready */
.wizard-ready-content {
  text-align: center;
  margin: 32px 0;
}

.wizard-ready-icon {
  font-size: 72px;
  margin-bottom: 24px;
  animation: wizardCelebrate 0.6s ease-in-out;
}

@keyframes wizardCelebrate {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(-10deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  75% {
    transform: scale(1.1) rotate(-10deg);
  }
}

.wizard-ready-message {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 32px;
}

.wizard-ready-option {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.wizard-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
}

.wizard-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Action Buttons */
.wizard-step-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.wizard-btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.wizard-btn-primary {
  background: #1a73e8;
  color: white;
}

.wizard-btn-primary:hover:not(:disabled) {
  background: #1557b0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.wizard-btn-primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.wizard-btn-secondary {
  background: white;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.wizard-btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .wizard-modal-card {
    width: 95%;
    max-height: 95vh;
  }

  #wizard-content {
    padding: 24px 20px;
  }

  .wizard-step-title {
    font-size: 24px;
  }

  .wizard-welcome-icon,
  .wizard-ready-icon {
    font-size: 56px;
  }

  .wizard-feature {
    gap: 12px;
  }

  .wizard-feature-icon {
    font-size: 28px;
  }

  .wizard-step-actions {
    flex-direction: column-reverse;
  }

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

/* Smooth scrolling for modal content */
.wizard-modal-card {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.wizard-btn:focus,
.wizard-account-option:focus {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.wizard-checkbox-label input[type="checkbox"]:focus {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}
