@keyframes slideUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.akraba-ekle-wizard {
  padding: 0;
  font-size: 12px;
  animation: slideUp 0.2s ease-out;
}

.wizard-baslik {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

// Seçim kartları 
.secim-kartlar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;

  @media (max-width: 480px) {
    grid-template-columns: 1fr;
  }
}

.secim-kart {
  padding: 10px 8px;
  border-radius: 6px;
  border: 1.5px solid #e2e8f0;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;

  &:active {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: scale(0.98);
  }

  .ikon {
    font-size: 20px;
    margin-bottom: 2px;
  }

  h3 {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1px;
  }

  p {
    font-size: 10px;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
  }
}

// Elle giriş formu
.elle-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 58vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;

  &::-webkit-scrollbar { width: 3px; }
  &::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
}

.form-label {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  display: block;
  margin-bottom: 1px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;

  @media (max-width: 400px) {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 4px;
  align-items: center;
}

// Resim picker (küçük)
.resim-area {
  text-align: center;
  margin-bottom: 0;
}

.resim-picker-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s;

  &:active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .cam-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.35);
    color: white;
    font-size: 9px;
    padding: 1px 0;
    text-align: center;
  }

  .resim-sil-btn-mini {
    position: absolute;
    top: -2px;
    right: -2px;
    z-index: 2;
    width: 14px;
    height: 14px;
    min-width: 14px;
    padding: 0;
    font-size: 7px;
    border-radius: 50% !important;
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
  }
}

// Özel alanlar
.ozel-alan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
}

.ozel-alan-bos {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  padding: 4px;
  border: 1px dashed #e2e8f0;
  border-radius: 4px;
}

// Mevcut kişi listesi
.mevcut-liste {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 2px;

  &::-webkit-scrollbar { width: 3px; }
  &::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
}

// Kart yapısı (bağ toggle destekli)
.mevcut-kart {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.12s, box-shadow 0.12s;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #94a3b8;
    border-radius: 6px 0 0 6px;
  }

  &.erkek::before {
    background: #3b82f6;
  }

  &.kadin::before {
    background: #ec4899;
  }

  &.vefat {
    opacity: 0.7;
    &::before { background: #64748b !important; }
  }

  &:active {
    border-color: #93c5fd;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.1);
  }
}

.mevcut-kart-ust {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 12px;
}

.mevcut-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.mevcut-bilgi {
  flex: 1;
  min-width: 0;
}

.mevcut-isim {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mevcut-kizlik {
  font-size: 10px;
  font-weight: 400;
  color: #a855f7;
  margin-left: 3px;
  font-style: italic;
}

.mevcut-detay {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mevcut-aksiyonlar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mevcut-bag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.12s;

  .anticon { font-size: 11px; }

  &:active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #3b82f6;
  }

  &.acik {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
  }
}

.mevcut-bag-sayi { font-weight: 600; }

// Bağlar bölümü
@keyframes baglarAcil {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 200px; }
}

.mevcut-baglar {
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  padding: 4px 8px 4px 12px;
  animation: baglarAcil 0.15s ease;
  border-radius: 0 0 6px 6px;
}

.mevcut-baglar-baslik {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 3px;

  .anticon { font-size: 10px; }
}

.mevcut-baglar-liste {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mevcut-bag-satir {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1.4;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.12s;

  &:active {
    background: #f0f5ff;
  }
}

.mevcut-bag-avatar-mini {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}

.mevcut-bag-aksiyonlar {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.mevcut-bag-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 3px;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  background: #fff;
  color: #64748b;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.12s;
  line-height: 16px;

  .anticon { font-size: 10px; }

  &:active {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
  }

  &.secim:active {
    border-color: #10b981;
    color: #10b981;
    background: #ecfdf5;
  }

  &.acik {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
  }
}

.mevcut-bag-simge {
  font-size: 11px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.mevcut-bag-tur {
  font-weight: 600;
  font-size: 10px;
  flex-shrink: 0;
}

.mevcut-bag-isim {
  color: #334155;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nested-baglar {
  margin-left: 22px;
  padding: 2px 0 2px 8px;
  border-left: 2px solid #e2e8f0;
  animation: baglarAcil 0.15s ease;
}

.mevcut-bos {
  text-align: center;
  padding: 12px;
  color: #94a3b8;
  font-size: 11px;
}

.mevcut-loading {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.mevcut-loading-alt {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

// Onay özet
.onay-ozet {
  padding: 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.onay-kisiler {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;

  @media (max-width: 400px) {
    flex-direction: column;
    gap: 6px;
  }
}

.onay-kisi {
  text-align: center;
}

.onay-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin: 0 auto 2px;
}

.onay-isim {
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
}

.onay-ok {
  font-size: 16px;
  color: #3b82f6;
}

.onay-ters {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

// Footer
.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
}

// Compact overrides
.akraba-ekle-wizard {
  .ant-input {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: border-color 0.15s, box-shadow 0.15s;

    &:focus {
      box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
    }
  }

  .ant-select-selector {
    font-size: 12px !important;
    border-radius: 4px !important;
  }

  .ant-radio-button-wrapper {
    font-size: 11px;
    padding: 0 8px;
    height: 24px;
    line-height: 22px;
  }

  textarea.ant-input {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;

    &:focus {
      box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
    }
  }

  .ant-btn-sm {
    font-size: 12px;
    border-radius: 4px;
  }
}
