/* Kurulum Sihirbazi */
.setup-wizard {
  padding: 28px 18px;
}

.setup-container {
  max-width: 1100px;
  margin: 0 auto;
}

.setup-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.setup-header {
  padding: 28px 32px 18px;
  border-bottom: 1px solid #eef2f7;
}

.setup-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.setup-subtitle {
  margin-top: 6px;
  color: #64748b;
}

.setup-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 560px;
}

.setup-steps {
  padding: 24px;
  background: #f8fafc;
  border-right: 1px solid #eef2f7;
}

.setup-step-item {
  display: flex;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 14px;
  margin-bottom: 10px;
  align-items: center;
  transition: background 0.2s ease;
}

.setup-step-item.active {
  background: #fff1ee;
}

.setup-step-no {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.setup-step-item.active .setup-step-no {
  background: #ff6247;
  color: #fff;
}

.setup-step-title {
  font-weight: 700;
  color: #0f172a;
}

.setup-step-desc {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.setup-content {
  padding: 28px 32px 32px;
}

.setup-step-content {
  display: none;
}

.setup-step-content.active {
  display: block;
}

.setup-step-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}

.setup-text {
  margin-bottom: 20px;
  color: #64748b;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.setup-field label {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.setup-field input,
.setup-field select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.setup-field small {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
}

.setup-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.setup-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.setup-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.setup-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.setup-btn.primary {
  background: #ff6247;
  color: #fff;
}

.setup-btn.secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.setup-btn.ghost {
  background: transparent;
  border-color: #e2e8f0;
  color: #475569;
}

.setup-category-add {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.setup-category-add input {
  flex: 1;
  min-width: 220px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.setup-category-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.setup-category-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}

.setup-category-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.setup-category-name {
  font-weight: 700;
  color: #0f172a;
}

.setup-category-count {
  color: #64748b;
  font-size: 13px;
}

.setup-category-actions {
  margin-top: 10px;
}

.setup-note {
  margin-top: 14px;
  color: #64748b;
}

.setup-empty-state {
  padding: 16px;
  border: 1px dashed #cbd5f5;
  border-radius: 14px;
  color: #64748b;
  text-align: center;
}

.setup-visual-choice {
  margin-top: 22px;
}

.setup-choice-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.setup-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.setup-choice-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.setup-choice-card input {
  accent-color: #ff6247;
}

.setup-choice-name {
  font-weight: 700;
  color: #0f172a;
}

.setup-choice-desc {
  color: #64748b;
  font-size: 13px;
}

.setup-summary-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  color: #475569;
  margin-bottom: 18px;
}

.setup-complete {
  padding: 30px;
  text-align: center;
}

.setup-complete-title {
  font-size: 20px;
  font-weight: 700;
}

.setup-complete-text {
  margin-top: 6px;
  color: #64748b;
}

.setup-complete-btn {
  display: inline-flex;
  margin-top: 16px;
  background: #ff6247;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
}

.setup-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.setup-modal.show {
  display: flex;
}

.setup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.setup-modal-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: min(860px, 92vw);
  max-height: 90vh;
  overflow: auto;
  padding: 16px 18px 20px;
  z-index: 1;
}

.setup-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.setup-modal-close {
  border: none;
  background: #f1f5f9;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.setup-modal-loading,
.setup-modal-error {
  padding: 18px;
  color: #475569;
}

@media (max-width: 900px) {
  .setup-body {
    grid-template-columns: 1fr;
  }
  .setup-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    border-right: none;
    border-bottom: 1px solid #eef2f7;
  }
}

@media (max-width: 600px) {
  .setup-header,
  .setup-content {
    padding: 20px;
  }
  .setup-actions {
    justify-content: flex-start;
  }
}
