:host {
  display: block;
  min-height: 100vh;
}
.header-actions {
  padding: 16px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.contenttype-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
  }
  .btn-add-contenttype {
  padding: 8px 18px;
  background: var(--action-primary-default, #7068b1);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* ================= VIEW TOGGLE ================= */
.view-toggle {
  display: flex;
  justify-content: flex-end;
  padding: 0 1rem;
  margin-bottom: 1rem;

  .Toggle {
    display: flex;
    gap: 8px;
  }

  button {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;

    &.active {
      background: var(--action-primary-default);
      color: white;
      border-color: var(--action-primary-default);
    }

    &:hover:not(.active) {
      background: #f9fafb;
    }
  }
}

/* ================= STEP INDICATOR ================= */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
  width: 100%;

  @media (max-width: 768px) {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.step-item {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    opacity: 0.85;
  }

  &:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 52px;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
  }

  &.completed::after {
    background: var(--action-primary-default);
  }
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 12px;
  z-index: 1;
  transition: all 0.2s ease;

  &.active,
  &.completed {
    background: var(--action-primary-default);
    color: white;
  }
}

.step-info {
  min-width: 0;

  h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #111827;
  }

  p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
  }
}

/* ================= LAYOUT ================= */
.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  padding: 0 1rem;

  @media (max-width: 900px) {
    grid-template-columns: 1fr;
  }
}

.form-view-layout {
  padding: 0 1rem;
}

.form-content {
  min-width: 0;
}

/* ================= FORM SCROLL ================= */
.FormOverView {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 8px;
  padding-bottom: 3rem;
}

/* ================= STEP CARDS ================= */
.step1,
.step2,
.step3 {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease;

  h3 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .step-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 1.2rem;
  }
}

/* ================= WIZARD STEP VISIBILITY ================= */
.wizard-view {
  .step1,
  .step2,
  .step3 {
    display: none;
    opacity: 0;
    transform: translateY(10px);
  }

  &[data-step="1"] .step1,
  &[data-step="2"] .step2,
  &[data-step="3"] .step3 {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= FORM VIEW ================= */
.form-view {
  .step1,
  .step2,
  .step3 {
    display: block !important;

    .step-description {
      display: none;
    }
  }
}

/* ================= FIELDS ================= */
.field-group {
  margin-bottom: 1rem;

  > div {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* ================= TEMPLATE GRID ================= */
.template-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

/* ================= ACTION SIDEBAR ================= */
.actions-sidebar {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 1rem;

  @media (max-width: 900px) {
    position: relative;
    top: 0;
  }

  h3 {
    font-size: 18px;
    margin-bottom: 1rem;
  }

  button {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.6rem;
    font-size: 14px;
    cursor: pointer;

    &.primary {
      background: var(--action-primary-default);
      color: white;
      border: none;
    }

    &.secondary {
      border: 1px solid #d1d5db;
      background: white;
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }

  .step-counter {
    margin-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;

    h4 {
      font-size: 14px;
    }

    p {
      font-size: 12px;
      color: #6b7280;
    }
  }
}

/* ================= ANIMATION ================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}