/* =========================================================
   Selenium Park Emir - Site Yönetim Asistanı
   ========================================================= */
:root {
  --ana: #0f766e;
  --ana-koyu: #134e4a;
  --lacivert: #1e3a8a;
  --zemin: #f1f5f9;
  --kart: #ffffff;
  --cizgi: #e2e8f0;
  --yazi: #0f172a;
  --yazi-soluk: #64748b;
  --menu-genislik: 270px;
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
}
body { background: var(--zemin); color: var(--yazi); font-size: .925rem; }

/* ---------- Yerleşim ---------- */
.uygulama { display: flex; min-height: 100vh; }
.ana-alan { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.icerik { padding: 1.5rem; flex: 1; }
.alt-bilgi { padding: 1rem 1.5rem; color: var(--yazi-soluk); font-size: .8rem; text-align: center; }

/* ---------- Sol menü ---------- */
.yan-menu {
  width: var(--menu-genislik);
  background: linear-gradient(180deg, #0b1f3a 0%, #0f2f4f 55%, #0f3d4a 100%);
  color: #cbd5e1;
  display: flex; flex-direction: column;
}
@media (min-width: 992px) {
  .yan-menu { position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
}
.yan-menu.offcanvas-lg { --bs-offcanvas-width: var(--menu-genislik); --bs-offcanvas-bg: #0b1f3a; }
.yan-menu-ust { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.marka { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: #fff; }
.marka img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 18px rgba(20,184,166,.35); }
.marka b { display: block; font-size: 1.05rem; letter-spacing: .2px; }
.marka small { display: block; font-size: .72rem; color: #94a3b8; }
.yan-menu-govde { flex: 1; overflow-y: auto; padding: .75rem .75rem; }
.menu-baslik { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px; color: #64748b; padding: 1rem .75rem .4rem; font-weight: 700; }
.menu-oge {
  display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; margin-bottom: 2px;
  border-radius: 10px; color: #cbd5e1; text-decoration: none; font-weight: 500; transition: .15s;
}
.menu-oge:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-oge.aktif { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 #2dd4bf; }
.menu-ikon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem; color: #fff; flex-shrink: 0; }
.yan-menu-alt { padding: 1rem; border-top: 1px solid rgba(255,255,255,.08); }

/* Renkli ikon kutuları */
.c-blue   { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.c-teal   { background: linear-gradient(135deg,#2dd4bf,#0f766e); }
.c-orange { background: linear-gradient(135deg,#fb923c,#ea580c); }
.c-purple { background: linear-gradient(135deg,#a78bfa,#7c3aed); }
.c-indigo { background: linear-gradient(135deg,#818cf8,#4338ca); }
.c-red    { background: linear-gradient(135deg,#f87171,#dc2626); }
.c-green  { background: linear-gradient(135deg,#4ade80,#16a34a); }
.c-amber  { background: linear-gradient(135deg,#fbbf24,#d97706); }
.c-pink   { background: linear-gradient(135deg,#f472b6,#db2777); }
.c-cyan   { background: linear-gradient(135deg,#22d3ee,#0891b2); }
.c-slate  { background: linear-gradient(135deg,#94a3b8,#475569); }

/* ---------- Üst bar ---------- */
.ust-bar {
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center;
  padding: .75rem 1.5rem; background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cizgi);
}
.sayfa-basligi { font-size: 1.2rem; font-weight: 700; margin: 0; }
.kullanici-btn { display: flex; align-items: center; gap: .55rem; padding: .3rem .7rem .3rem .3rem; border-radius: 999px; }
.zil { animation: zil 1.6s infinite; display: inline-block; }
@keyframes zil { 0%,60%,100% { transform: rotate(0) } 10%,30% { transform: rotate(14deg) } 20%,40% { transform: rotate(-14deg) } }

/* ---------- Kartlar ---------- */
.kart { background: var(--kart); border: 1px solid var(--cizgi); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.kart-baslik { display: flex; align-items: center; gap: .65rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--cizgi); flex-wrap: wrap; }
.kart-baslik h5 { margin: 0; font-size: 1rem; font-weight: 700; }
.kart-govde { padding: 1.25rem; }
.baslik-ikon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1.05rem; flex-shrink: 0; }

/* İstatistik kutuları */
.istatistik { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; }
.istatistik .ikon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; flex-shrink: 0; }
.istatistik .sayi { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.istatistik .etiket { color: var(--yazi-soluk); font-size: .8rem; margin-top: .25rem; }

/* Avatar */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: .9rem; flex-shrink: 0; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.5rem; }
.avatar-xl { width: 110px; height: 110px; font-size: 2rem; }

/* Kişi kartı (personel / yönetici) */
.kisi-karti { text-align: center; padding: 1.4rem 1rem; height: 100%; transition: .2s; position: relative; }
.kisi-karti:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.kisi-karti .avatar-lg { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--cizgi); }
.kisi-karti h6 { margin: .85rem 0 .2rem; font-weight: 700; }
.pasif-kart { opacity: .55; filter: grayscale(.6); }

/* Daire sahibi kartı */
.daire-karti { display: flex; gap: 1rem; padding: 1rem; align-items: center; height: 100%; border-left: 4px solid #14b8a6; }
.daire-no { min-width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg,#ccfbf1,#99f6e4); color: var(--ana-koyu); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; text-align: center; line-height: 1.05; }
.daire-no small { display: block; font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* Önemli telefon kartı */
.telefon-karti { display: flex; align-items: center; gap: .9rem; padding: 1rem; height: 100%; text-decoration: none; color: inherit; transition: .2s; }
.telefon-karti:hover { box-shadow: 0 10px 24px rgba(15,23,42,.08); color: inherit; }
.telefon-karti .numara { font-size: 1.25rem; font-weight: 800; letter-spacing: .5px; }

/* Arama */
.buyuk-arama { position: relative; }
.buyuk-arama i.bi-search { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--yazi-soluk); font-size: 1.15rem; }
.buyuk-arama input { padding: .9rem 1rem .9rem 3rem; border-radius: 14px; font-size: 1rem; border: 2px solid var(--cizgi); }
.buyuk-arama input:focus { border-color: #14b8a6; box-shadow: 0 0 0 .25rem rgba(20,184,166,.15); }

/* Tablolar */
.table-modern { margin: 0; }
.table-modern thead th { background: #f8fafc; color: var(--yazi-soluk); font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; border-bottom: 1px solid var(--cizgi); white-space: nowrap; padding: .75rem; }
.table-modern td { vertical-align: middle; padding: .7rem .75rem; border-color: #f1f5f9; }
.table-modern tbody tr:hover { background: #f8fafc; }
.islem-butonlari { white-space: nowrap; }
.islem-butonlari .btn { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border-radius: 8px; }

/* Filtre çubuğu */
.filtre { background: #f8fafc; border-bottom: 1px solid var(--cizgi); padding: 1rem 1.25rem; }
.filtre .form-label { font-size: .75rem; font-weight: 600; color: var(--yazi-soluk); margin-bottom: .25rem; }

/* Formlar */
.form-control, .form-select { border-radius: 10px; border-color: #d7dee8; }
.form-control:focus, .form-select:focus { border-color: #60a5fa; box-shadow: 0 0 0 .2rem rgba(37,99,235,.12); }
.btn { border-radius: 10px; font-weight: 500; }
.form-bolum { border: 1px solid var(--cizgi); border-radius: 16px; background: #fff; margin-bottom: 1.25rem; }
.form-bolum-baslik { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--cizgi); }
.adim-no { width: 30px; height: 30px; border-radius: 50%; background: var(--lacivert); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.form-bolum.tamam .adim-no { background: #16a34a; }
.form-bolum-govde { padding: 1.25rem; }
.zorunlu::after { content: ' *'; color: #dc2626; }

/* Ziyaretçi onay kutusu */
.onay-kutusu { border: 2px dashed #f59e0b; background: #fffbeb; border-radius: 16px; padding: 1.25rem; }
.onay-kutusu.onaylandi { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.onay-kutusu .form-check-input { width: 1.6em; height: 1.6em; margin-top: 0; }
.onay-kutusu .form-check-label { font-weight: 700; font-size: 1.05rem; padding-left: .5rem; }
.sahip-ozet { background: linear-gradient(135deg,#1e3a8a,#0f766e); color: #fff; border-radius: 16px; padding: 1.25rem; }
.sahip-ozet .tel { font-size: 1.5rem; font-weight: 800; color: #fde047; text-decoration: none; }

/* Uyarı listesi */
.uyari-satir { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; border-bottom: 1px solid #fde2e2; }
.uyari-satir:last-child { border-bottom: 0; }

/* Boş durum */
.bos-durum { text-align: center; padding: 3rem 1rem; color: var(--yazi-soluk); }
.bos-durum > i { font-size: 3rem; display: block; margin-bottom: .75rem; opacity: .6; }

/* Silme modal */
.sil-ikon { width: 64px; height: 64px; border-radius: 50%; background: #fee2e2; color: #dc2626; display: grid; place-items: center; font-size: 1.6rem; margin: auto; }

/* Rozet renkleri */
.text-bg-purple { background: #7c3aed !important; color: #fff !important; }
.text-bg-cyan   { background: #0891b2 !important; color: #fff !important; }
.text-bg-orange { background: #ea580c !important; color: #fff !important; }
.bg-purple { background: #7c3aed !important; } .bg-cyan { background: #0891b2 !important; } .bg-orange { background: #ea580c !important; }

/* Rapor çubuğu */
.cubuk { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; min-width: 80px; }
.cubuk > span { display: block; height: 100%; background: linear-gradient(90deg,#14b8a6,#2563eb); border-radius: 99px; }

/* Foto önizleme */
.foto-onizleme { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px dashed #cbd5e1; display: grid; place-items: center; margin: auto; background: #f8fafc; color: #94a3b8; font-size: 2rem; overflow: hidden; cursor: pointer; }
.foto-onizleme img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   GİRİŞ EKRANI
   ========================================================= */
.giris-sayfa { min-height: 100vh; display: flex; background: #fff; }
.giris-sol {
  flex: 1.25; position: relative; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 3rem; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,23,42,.05) 0%, rgba(15,23,42,.35) 45%, rgba(15,23,42,.85) 100%),
    url('../img/selenium.jpg') center / cover no-repeat,
    linear-gradient(160deg, #38bdf8 0%, #0ea5e9 35%, #0f766e 70%, #1e3a8a 100%);
}
.giris-sol .ust-logo { position: absolute; top: 2rem; left: 3rem; display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.giris-sol .ust-logo img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.giris-sol h1 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 800; line-height: 1.1; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.giris-sol h1 span { color: #5eead4; }
.giris-sol p { color: #e2e8f0; max-width: 520px; font-size: 1rem; }
.giris-sol .ozellikler { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.giris-sol .ozellikler span { background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); padding: .4rem .8rem; border-radius: 999px; font-size: .8rem; }
.giris-sag { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; background: radial-gradient(circle at top right, #ecfeff 0%, #fff 45%); }
.giris-kutu { width: 100%; max-width: 400px; }
.giris-kutu .logo-buyuk { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 14px 34px rgba(15,118,110,.3); }
.giris-kutu h2 { font-weight: 800; margin-top: 1.25rem; }
.giris-kutu .input-group-text { background: #f8fafc; border-color: #d7dee8; color: #64748b; border-radius: 12px 0 0 12px; }
.giris-kutu .form-control { padding: .8rem 1rem; border-radius: 0 12px 12px 0; }
.giris-kutu .sifre-goster { border-radius: 0 12px 12px 0 !important; border-color: #d7dee8; }
.giris-kutu .sifre-alani .form-control { border-radius: 0; }
.btn-giris { padding: .85rem; border-radius: 12px; font-weight: 700; font-size: 1rem; border: 0; color: #fff;
  background: linear-gradient(135deg, #14b8a6, #1e3a8a); box-shadow: 0 10px 24px rgba(30,58,138,.25); }
.btn-giris:hover { color: #fff; filter: brightness(1.08); }
@media (max-width: 991.98px) {
  .giris-sayfa { flex-direction: column; }
  .giris-sol { min-height: 260px; padding: 2rem 1.5rem; flex: none; }
  .giris-sol .ust-logo { left: 1.5rem; top: 1.25rem; }
  .giris-sol p, .giris-sol .ozellikler { display: none; }
}

/* Mobil */
@media (max-width: 575.98px) {
  .icerik { padding: 1rem; }
  .ust-bar { padding: .6rem 1rem; }
  .sayfa-basligi { font-size: 1.02rem; }
  .istatistik { padding: .8rem; gap: .6rem; }
  .istatistik .ikon { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 11px; }
  .istatistik .sayi { font-size: 1.2rem !important; }
  .istatistik > div:last-child { min-width: 0; overflow-wrap: anywhere; }
}
.ana-alan { overflow-x: clip; }

/* Yazdırma */
@media print {
  .yan-menu, .ust-bar, .alt-bilgi, .filtre, .no-print, .islem-butonlari { display: none !important; }
  body, .icerik { background: #fff; padding: 0; }
  .kart { border: 0; box-shadow: none; }
}
