/* ============================================================================
   TASKEEN GEOJSON IMPORT WIZARD STYLES
   Version: 1.0
   
   Enhanced design for the GeoJSON import workflow wizard
============================================================================ */

/* ============================================================================
   IMPORT WIZARD CONTAINER
============================================================================ */

.import-wizard-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--Gray-50) 0%, var(--Other-Primary-Tint) 100%);
  padding: 2rem;
  margin-left: var(--left-nav-width, 150px);
}

/* ============================================================================
   WIZARD STEPPER (HORIZONTAL STEPS)
============================================================================ */

.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--Main-Colors-White);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  max-width: 200px;
  transition: all 0.3s ease;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--Gray-Gray-Tint-5);
  border: 3px solid var(--Gray-Gray-Tint-20);
  color: var(--Text-Colors-md-Gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-default, Montserrat);
  transition: all 0.3s ease;
}

.step-label {
  font-family: var(--font-default, Montserrat);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--Text-Colors-md-Gray, #858E86);
  text-align: center;
  transition: all 0.3s ease;
}

/* Active Step */
.step-item.active .step-number {
  background: linear-gradient(135deg, var(--Main-Colors-Main) 0%, var(--primary-shade-60) 100%);
  border-color: var(--Main-Colors-Main);
  color: var(--Text-Colors-White);
  box-shadow: 0 4px 12px rgba(43, 86, 49, 0.3);
  transform: scale(1.1);
}

.step-item.active .step-label {
  color: var(--Main-Colors-Main, #2B5631);
  font-weight: 700;
}

/* Completed Step */
.step-item.completed .step-number {
  background: var(--Main-Colors-Main, #2B5631);
  border-color: var(--Main-Colors-Main, #2B5631);
  color: white;
}

.step-item.completed .step-label {
  color: var(--Main-Colors-Main, #2B5631);
}

/* Step Divider */
.step-divider {
  flex: 0.5;
  height: 3px;
  background: var(--Gray-Gray-Tint-20, #CDD6DB);
  margin: 0 0.5rem;
  margin-top: -2rem;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.step-item.completed+.step-divider {
  background: var(--Main-Colors-Main, #2B5631);
}

/* ============================================================================
   WIZARD CONTENT (STEP CONTAINER)
============================================================================ */

.wizard-content {
  background: var(--Main-Colors-White);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-height: 500px;
}

.wizard-step {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-step h3 {
  font-family: var(--font-default, Montserrat);
  font-size: 2rem;
  font-weight: 700;
  color: var(--Text-Colors-Black);
  margin-bottom: 0.5rem;
}

.wizard-step p.text-muted {
  font-family: var(--font-default, Montserrat);
  font-size: 1rem;
  color: var(--Text-Colors-md-Gray, #858E86);
  margin-bottom: 2rem;
}

/* ============================================================================
   REGION SELECTION
============================================================================ */

.region-selection {
  margin-bottom: 2rem;
}

.region-selection h5 {
  font-family: var(--font-default, Montserrat);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--Text-Colors-Dark-Gray, #3A403B);
  margin-bottom: 1rem;
}

.region-selection .btn-group {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.region-selection .btn-check {
  display: none;
}

.region-selection .btn-outline-primary {
  flex: 1;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 2px solid var(--Gray-Gray-Tint-20);
  border-radius: 0.75rem;
  background: var(--Main-Colors-White);
  color: var(--Text-Colors-Dark-Gray);
  font-family: var(--font-default, Montserrat);
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.region-selection .btn-outline-primary:hover {
  border-color: var(--Main-Colors-Main, #2B5631);
  background: var(--Other-Primary-Tint, rgba(43, 86, 49, 0.1));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 86, 49, 0.15);
}

.region-selection .btn-check:checked+.btn-outline-primary {
  background: linear-gradient(135deg, #2B5631 0%, #1A3A1E 100%);
  border-color: #2B5631;
  color: white;
  box-shadow: 0 4px 12px rgba(43, 86, 49, 0.3);
}

/* ============================================================================
   UPLOAD SECTIONS
============================================================================ */

.upload-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--Gray-50, #F9FAFB);
  border-radius: 1rem;
  border: 1px solid var(--Gray-Gray-Tint-20, #CDD6DB);
}

.upload-section h5 {
  font-family: var(--font-default, Montserrat);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--Text-Colors-Black, #101911);
  margin-bottom: 0.75rem;
}

.upload-section .help-text {
  font-family: var(--font-default, Montserrat);
  font-size: 0.875rem;
  color: var(--Text-Colors-md-Gray, #858E86);
  margin-bottom: 1rem;
}

.upload-section .help-text code {
  background: var(--Main-Colors-Main, #2B5631);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
}

/* ============================================================================
   FILE UPLOAD ZONE
============================================================================ */

.file-upload-zone {
  border: 2px dashed var(--Gray-Gray-Tint-20);
  border-radius: 1rem;
  padding: 2.5rem;
  background: var(--Main-Colors-White);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-zone:hover {
  border-color: var(--Main-Colors-Main, #2B5631);
  background: var(--Other-Primary-Tint, rgba(43, 86, 49, 0.05));
}

.file-upload-zone.dragover {
  border-color: var(--Main-Colors-Main, #2B5631);
  background: var(--Other-Primary-Tint, rgba(43, 86, 49, 0.1));
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(43, 86, 49, 0.15);
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.7;
}

.upload-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--Main-Colors-Main, #2B5631);
}

.upload-text {
  font-family: var(--font-default, Montserrat);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--Text-Colors-Dark-Gray, #3A403B);
  margin-bottom: 0.5rem;
}

.upload-subtext {
  font-family: var(--font-default, Montserrat);
  font-size: 0.875rem;
  color: var(--Text-Colors-md-Gray, #858E86);
}

/* ============================================================================
   UPLOAD SUMMARY
============================================================================ */

.upload-summary {
  background: linear-gradient(135deg, rgba(43, 86, 49, 0.05) 0%, rgba(43, 86, 49, 0.1) 100%);
  border: 1px solid var(--Main-Colors-Main, #2B5631);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.upload-summary h6 {
  font-family: var(--font-default, Montserrat);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--Main-Colors-Main, #2B5631);
  margin-bottom: 1rem;
}

.upload-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.upload-summary li {
  font-family: var(--font-default, Montserrat);
  font-size: 1rem;
  color: var(--Text-Colors-Dark-Gray, #3A403B);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-summary li:before {
  content: "?";
  color: var(--Main-Colors-Main, #2B5631);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ============================================================================
   STEP ACTIONS (NAVIGATION BUTTONS)
============================================================================ */

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--Gray-Gray-Tint-5, #F2F3F3);
}

.step-actions .btn {
  height: 56px;
  padding: 0 2rem;
  border-radius: 0.75rem;
  font-family: var(--font-default, Montserrat);
  font-size: 1.0625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.step-actions .btn-secondary {
  background: white;
  border: 2px solid var(--Gray-Gray-Tint-20, #CDD6DB);
  color: var(--Text-Colors-Dark-Gray, #3A403B);
}

.step-actions .btn-secondary:hover {
  background: var(--Gray-50, #F9FAFB);
  border-color: var(--Text-Colors-Dark-Gray, #3A403B);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-actions .btn-primary,
.step-actions .btn-success {
  background: linear-gradient(135deg, #2B5631 0%, #1A3A1E 100%);
  color: white;
}

.step-actions .btn-primary:hover:not(:disabled),
.step-actions .btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 86, 49, 0.3);
}

.step-actions .btn-primary:disabled {
  background: var(--Gray-Gray-Tint-20, #CDD6DB);
  color: var(--Text-Colors-md-Gray, #858E86);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ============================================================================
   DETECTION PROGRESS
============================================================================ */

.detection-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--Other-Primary-Tint, rgba(43, 86, 49, 0.1));
  border-radius: 0.5rem;
  font-family: var(--font-default, Montserrat);
  font-size: 1rem;
  color: var(--Main-Colors-Main, #2B5631);
  font-weight: 600;
}

.detection-progress .spinner-border {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 0.2rem;
  color: var(--Main-Colors-Main, #2B5631);
}

/* ============================================================================
   STEP 2: TABS & FIELD MAPPING
============================================================================ */

.nav-tabs {
  border-bottom: 2px solid var(--Gray-Gray-Tint-20);
  margin-bottom: 2rem;
}

.nav-tabs .nav-item {
  margin-bottom: -2px;
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem 1.5rem;
  font-family: var(--font-default, Montserrat);
  font-size: 1rem;
  font-weight: 600;
  color: var(--Text-Colors-md-Gray, #858E86);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-tabs .nav-link:hover {
  color: var(--Main-Colors-Main, #2B5631);
  background: var(--Other-Primary-Tint, rgba(43, 86, 49, 0.05));
}

.nav-tabs .nav-link.active {
  color: var(--Main-Colors-Main, #2B5631);
  border-bottom-color: var(--Main-Colors-Main, #2B5631);
  background: transparent;
}

.nav-tabs .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.badge.bg-success {
  background: var(--Main-Colors-Main, #2B5631) !important;
}

.badge.bg-warning {
  background: #F57C00 !important;
}

/* ============================================================================
   STEP 3: VALIDATION
============================================================================ */

.validation-progress {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--Gray-50);
  border-radius: 1rem;
}

.validation-progress h5 {
  font-family: var(--font-default, Montserrat);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--Text-Colors-Black, #101911);
  margin-top: 1rem;
}

/* Enhanced Alerts */
.alert {
  border-radius: 0.75rem;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-default, Montserrat);
}

.alert-info {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.15) 100%);
  border-left: 4px solid #2196F3;
}

.alert-success {
  background: linear-gradient(135deg, rgba(43, 86, 49, 0.1) 0%, rgba(43, 86, 49, 0.15) 100%);
  border-left: 4px solid var(--Main-Colors-Main, #2B5631);
}

.alert-danger {
  background: linear-gradient(135deg, rgba(233, 63, 63, 0.1) 0%, rgba(233, 63, 63, 0.15) 100%);
  border-left: 4px solid #E93F3F;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(245, 124, 0, 0.1) 0%, rgba(245, 124, 0, 0.15) 100%);
  border-left: 4px solid #F57C00;
}

.alert-heading {
  font-family: var(--font-default, Montserrat);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ============================================================================
   STEP 4: IMPORT EXECUTION
============================================================================ */

.import-config .card {
  border: 1px solid var(--Gray-Gray-Tint-20, #CDD6DB);
  border-radius: 0.75rem;
  box-shadow: none;
}

.import-config .card-body {
  padding: 1.5rem;
}

/* Progress Bars */
.progress {
  height: 30px;
  border-radius: 0.5rem;
  background: var(--Gray-50);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--Main-Colors-Main) 0%, var(--primary-shade-60) 100%);
  font-family: var(--font-default, Montserrat);
  font-size: 0.9375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-bar-striped {
  background-image: linear-gradient(45deg,
      rgba(255, 255, 255, 0.15) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.15) 75%,
      transparent 75%,
      transparent);
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  0% {
    background-position: 1rem 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* Import Statistics Cards */
.import-stats {
  margin-top: 2rem;
}

.stat-card {
  background: var(--Main-Colors-White);
  border: 1px solid var(--Gray-Gray-Tint-20);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(43, 86, 49, 0.15);
}

.stat-value {
  font-family: var(--font-default, Montserrat);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--Main-Colors-Main, #2B5631);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-default, Montserrat);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--Text-Colors-md-Gray, #858E86);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Success Icon */
.success-icon {
  font-size: 5rem;
  color: var(--Main-Colors-Main, #2B5631);
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.import-success h4 {
  font-family: var(--font-default, Montserrat);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--Text-Colors-Black, #101911);
  margin-bottom: 1rem;
}

/* ============================================================================
   RESPONSIVE DESIGN
============================================================================ */

@media (max-width: 1024px) {
  .import-wizard-container {
    margin-left: 0;
    padding: 1rem;
  }

  .wizard-stepper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .step-divider {
    width: 3px;
    height: 40px;
    margin: 0;
  }

  .step-item {
    flex-direction: row;
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .wizard-content {
    padding: 1.5rem;
  }

  .wizard-step h3 {
    font-size: 1.5rem;
  }

  .region-selection .btn-group {
    flex-direction: column;
  }

  .step-actions {
    flex-direction: column-reverse;
  }

  .step-actions .btn {
    width: 100%;
  }

  .import-stats {
    gap: 1rem;
  }
}

/* ============================================================================
   END OF IMPORT WIZARD STYLES
============================================================================ */