:host { display: block; padding-bottom: 80px; }

/* ── SAYFA HEADER ─────────────────────────────────────────────── */
.sayfa-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.header-sol { display: flex; align-items: center; }
.header-sag { display: flex; align-items: center; gap: 8px; }
.baslik-grup { display: flex; align-items: center; gap: 12px; }
.baslik-ikon { font-size: 28px; color: #595959; }
.baslik { margin: 0; font-size: 22px; font-weight: 700; color: #1a1a2e; line-height: 1.2; }
.altbaslik { margin: 0; font-size: 12px; color: #8c8c8c; }
.degisiklik-badge { animation: pulse 1.5s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ── AYAR KART ─────────────────────────────────────────────────── */
.ayar-kart {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease;
  height: 100%;
}
.ayar-kart:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.tehlikeli-kart {
  border-color: #ffccc7 !important;
}
:host ::ng-deep .tehlikeli-kart .ant-card-head {
  border-bottom-color: #ffccc7;
}

/* ── FORM ALANLARI ─────────────────────────────────────────────── */
.form-alan { margin-bottom: 16px; }
.form-etiket {
  display: flex; align-items: center;
  font-size: 13px; font-weight: 500; color: #595959;
  margin-bottom: 6px;
}

.switch-satir {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
}
.switch-bilgi { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.switch-baslik { font-size: 13px; font-weight: 500; color: #1a1a2e; display: flex; align-items: center; }
.switch-aciklama { font-size: 11px; color: #8c8c8c; margin-top: 2px; }

/* ── SERVIS GRID ───────────────────────────────────────────────── */
.servis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.servis-kart {
  padding: 16px; border-radius: 10px;
  border: 1px solid #f0f0f0;
  text-align: center;
  transition: all 0.25s;
}
.servis-kart:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.sk-aktif { background: linear-gradient(135deg, #f6ffed 0%, #fcffe6 100%); border-color: #b7eb8f; }
.sk-hata { background: linear-gradient(135deg, #fff2f0 0%, #fff1f0 100%); border-color: #ffccc7; }
.sk-uyari { background: linear-gradient(135deg, #fffbe6 0%, #fff7e6 100%); border-color: #ffe58f; }
.sk-bilinmiyor { background: #fafafa; }
.servis-kart-ust { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.servis-simge { font-size: 24px; color: #595959; }
.servis-nokta { width: 8px; height: 8px; border-radius: 50%; }
.nokta-aktif { background: #52c41a; box-shadow: 0 0 6px rgba(82, 196, 26, 0.5); }
.nokta-hata { background: #ff4d4f; box-shadow: 0 0 6px rgba(255, 77, 79, 0.5); }
.nokta-uyari { background: #faad14; box-shadow: 0 0 6px rgba(250, 173, 20, 0.5); }
.nokta-bilinmiyor { background: #d9d9d9; }
.servis-ad { font-weight: 600; font-size: 13px; color: #1a1a2e; margin-bottom: 6px; }
.servis-durum-etiket { margin-bottom: 4px; }
.servis-detay { font-size: 10px; color: #8c8c8c; }
.son-kontrol-bilgi {
  text-align: right; font-size: 11px; color: #bfbfbf; margin-top: 12px;
  display: flex; align-items: center; justify-content: flex-end;
}

/* ── DEPOLAMA ──────────────────────────────────────────────────── */
.depolama-satirlari { display: flex; flex-direction: column; gap: 12px; }
.depolama-satir { display: flex; align-items: center; gap: 12px; }
.depolama-bilgi { display: flex; align-items: center; min-width: 120px; }
.depolama-etiket { font-size: 13px; color: #595959; }
.depolama-yuzde { font-size: 12px; font-weight: 600; min-width: 40px; text-align: right; }

/* ── DB ISTATISTIK ─────────────────────────────────────────────── */
.db-istatistik-liste { display: flex; flex-direction: column; gap: 8px; }
.db-istatistik-satir {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #fafafa; border-radius: 8px;
  transition: background 0.2s;
}
.db-istatistik-satir:hover { background: #f0f0f0; }
.db-sol { display: flex; align-items: center; }
.db-etiket { font-size: 13px; color: #595959; }

/* ── VERSIYON ──────────────────────────────────────────────────── */
.versiyon-liste { display: flex; flex-direction: column; gap: 8px; }
.versiyon-satir {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #fafafa;
}
.versiyon-satir:last-child { border-bottom: none; }
.versiyon-ad { font-size: 13px; color: #595959; }

/* ── KUYRUK ────────────────────────────────────────────────────── */
.kuyruk-barlar { display: flex; flex-direction: column; gap: 8px; }
.kuyruk-satir { display: flex; align-items: center; gap: 10px; }
.kuyruk-etiket { font-size: 12px; color: #595959; min-width: 70px; }
.kuyruk-sayi { font-size: 12px; font-weight: 600; min-width: 30px; text-align: right; }

/* ── TEHLIKELI BOLGE ───────────────────────────────────────────── */
.tehlikeli-grid { display: flex; flex-direction: column; gap: 12px; }
.tehlikeli-islem {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; background: #fafafa; border-radius: 10px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s;
}
.tehlikeli-islem:hover { border-color: #ffccc7; background: #fff2f0; }
.tehlikeli-bilgi { display: flex; align-items: center; gap: 12px; }
.tehlikeli-bilgi strong { font-size: 13px; display: block; }
.tehlikeli-aciklama { font-size: 11px; color: #8c8c8c; display: block; margin-top: 2px; }

.kart-aciklama { color: #8c8c8c; font-size: 13px; margin-bottom: 12px; }

/* ── STICKY FOOTER ─────────────────────────────────────────────── */
.sticky-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 100; padding: 12px 24px;
  animation: slideUp 0.3s ease;
}
.footer-icerik {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.footer-sol { display: flex; align-items: center; font-size: 13px; color: #595959; }
.footer-sag { display: flex; gap: 8px; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tehlikeli-islem { flex-direction: column; gap: 8px; text-align: center; }
  .tehlikeli-bilgi { flex-direction: column; text-align: center; }
  .servis-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .baslik { font-size: 18px; }
  .servis-grid { grid-template-columns: 1fr; }
  .depolama-bilgi { min-width: 80px; }
}
