/**
 * Wizard Styles
 * Multi-step form wizard for employee onboarding
 */

/* ========================================
   WIZARD OVERLAY & CONTAINER
   ======================================== */

.wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 2rem;
  animation: fadeIn 0.2s ease-out;
}

.dialog-wizard {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 1200px;
  width: 95vw;
  max-height: 95vh;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ========================================
   WIZARD PROGRESS INDICATOR
   ======================================== */

.wizard-progress {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(to bottom, #fafbfc, #ffffff);
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  height: 2px;
  background: #e5e7eb;
  transform: translateY(-50%);
  z-index: 0;
}

.wizard-step {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 3px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step .step-number {
  font-size: 1.125rem;
  font-weight: 600;
  color: #9ca3af;
  transition: color 0.3s ease;
}

.wizard-step.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(16, 39, 76, 0.1);
  transform: scale(1.1);
}

.wizard-step.active .step-number {
  color: white;
}

.wizard-step.completed {
  border-color: #22c55e;
  background: #22c55e;
}

.wizard-step.completed .step-number {
  color: white;
}

.wizard-step.completed::after {
  content: '✓';
  position: absolute;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
}

.wizard-step.completed .step-number {
  display: none;
}

.wizard-step-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 0.5rem;
}

/* ========================================
   WIZARD CONTENT
   ======================================== */

.wizard-step-content {
  flex: 1;
  overflow-y: auto;
  padding: 3rem 4rem;
  min-height: 400px;
}

.wizard-step-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wizard-section-header {
  text-align: center;
  margin-bottom: 1rem;
}

.wizard-section-header .section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
}

.wizard-section-header .section-description {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}

.wizard-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.wizard-form-single-column {
  grid-template-columns: 1fr;
}

/* Manual form layout with explicit rows */
.wizard-form-manual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.form-col-1 {
  grid-column: span 4;
}

.form-col-2 {
  grid-column: span 2;
}

.form-col-3 {
  grid-column: span 3;
}

.form-col-1-quarter {
  grid-column: span 1;
}

/* Special row for 3 equal columns */
.form-row-3-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

/* Checkbox styles for wizard */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.checkbox-wrapper:hover {
  background-color: #f8fafc;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.9375rem;
  color: #334155;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.checkbox-label span {
  flex: 1;
}

/* ========================================
   WIZARD NAVIGATION
   ======================================== */

.wizard-navigation {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  background: #fafbfc;
}

.wizard-navigation button {
  min-width: 120px;
}

/* ========================================
   WIZARD ANIMATIONS
   ======================================== */

/* Step transitions - directional slide */
.step-exit-right {
  animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

.step-exit-left {
  animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

.step-enter-right {
  animation: slideInRight 0.4s cubic-bezier(0, 0, 0.2, 1) forwards;
}

.step-enter-left {
  animation: slideInLeft 0.4s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
  .wizard-overlay {
    padding: 1rem;
  }

  .dialog-wizard {
    max-width: 100%;
    max-height: 95vh;
  }

  .wizard-progress {
    padding: 1.5rem 1rem 1rem;
  }

  .wizard-steps {
    gap: 0.5rem;
  }

  .wizard-step {
    width: 40px;
    height: 40px;
  }

  .wizard-step .step-number {
    font-size: 1rem;
  }

  .wizard-step-content {
    padding: 1.5rem 1rem;
  }

  .wizard-navigation {
    padding: 1rem;
    flex-wrap: wrap;
  }

  .wizard-navigation button {
    flex: 1;
    min-width: 100px;
  }
}

/* ========================================
   PROFILE SCREEN STYLES
   ======================================== */

.profile-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #fafbfc;
}

.profile-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 2rem;
}

.profile-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.profile-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.profile-completion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.completion-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.completion-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.completion-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #3b82f6);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.completion-progress.complete {
  background: linear-gradient(90deg, #22c55e, #10b981);
}

.profile-navigation {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: white;
  border-bottom: 2px solid #e5e7eb;
  overflow-x: auto;
}

.profile-nav-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.profile-nav-tab:hover {
  background: #f8fafc;
  color: #334155;
}

.profile-nav-tab.active {
  background: var(--color-primary);
  color: white;
}

.tab-icon {
  font-size: 1.25rem;
}

.profile-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.profile-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.5rem 0;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.profile-field:last-child {
  border-bottom: none;
}

.field-label {
  font-weight: 500;
  color: #64748b;
  min-width: 200px;
}

.field-value {
  color: #1e293b;
  font-weight: 500;
}

.profile-field-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-list li {
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border-radius: 6px;
  color: #334155;
}

.field-list li.empty {
  color: #94a3b8;
  font-style: italic;
}

.section-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
}
