/* === GENEL === */
* { box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; }

/* === SAYFA GEÇİŞİ === */
.sayfa { display: block; }
.sayfa.gizli { display: none; }
.gizli { display: none !important; }

/* === SIDEBAR NAV === */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: #9ca3af;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.nav-btn:hover { background: #1f2937; color: #f3f4f6; }
.nav-btn.active { background: #1e3a5f; color: #60a5fa; border-left-color: #3b82f6; }
.nav-icon { font-size: 1rem; width: 20px; text-align: center; }

/* === STAT KARTLAR === */
.stat-kart {
  background: #111827;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #1f2937;
}
.stat-kart.blue .stat-sayi { color: #60a5fa; }
.stat-kart.green .stat-sayi { color: #34d399; }
.stat-kart.yellow .stat-sayi { color: #fbbf24; }
.stat-kart.purple .stat-sayi { color: #a78bfa; }
.stat-sayi { font-size: 1.75rem; font-weight: 700; margin-bottom: 4px; }
.stat-etiket { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }

/* === BUTONLAR === */
.btn-mavi {
  background: #2563eb;
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
}
.btn-mavi:hover { background: #1d4ed8; }
.btn-yesil {
  background: #059669;
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}
.btn-yesil:hover { background: #047857; }
.btn-gri {
  background: #374151;
  color: #d1d5db;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
}
.btn-gri:hover { background: #4b5563; }
.btn-kirmizi {
  background: #dc2626;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
}
.btn-kirmizi:hover { background: #b91c1c; }

/* === FORM === */
.etiket { display: block; font-size: 0.75rem; color: #9ca3af; margin-bottom: 4px; font-weight: 500; }
.girdi {
  width: 100%;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 8px 12px;
  color: #f3f4f6;
  font-size: 0.875rem;
  outline: none;
  transition: border 0.15s;
}
.girdi:focus { border-color: #3b82f6; }

/* === MAVİ CHAT === */
.mavi-mesaj {
  display: flex;
  gap: 10px;
  max-width: 80%;
}
.mavi-mesaj.user { flex-direction: row-reverse; margin-left: auto; }
.mavi-balon {
  background: #1f2937;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  border: 1px solid #374151;
}
.mavi-mesaj.user .mavi-balon {
  background: #1e3a5f;
  border-color: #2563eb;
}
.mavi-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.mavi-mesaj:not(.user) .mavi-avatar { background: #1e3a5f; }
.mavi-mesaj.user .mavi-avatar { background: #374151; }
.hizli-btn {
  background: #1f2937;
  border: 1px solid #374151;
  color: #9ca3af;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  transition: all 0.15s;
}
.hizli-btn:hover { border-color: #3b82f6; color: #60a5fa; }
.yazma-animasyon { color: #6b7280; font-style: italic; font-size: 0.8rem; }

/* === CRM KANBAN === */
.kanban-kolon {
  min-width: 220px;
  background: #111827;
  border-radius: 12px;
  border: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
}
.kanban-baslik {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kanban-kartlar { padding: 10px; flex: 1; space-y: 2px; min-height: 200px; }
.kanban-kart {
  background: #1f2937;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  border: 1px solid #374151;
  cursor: pointer;
  transition: border 0.15s;
}
.kanban-kart:hover { border-color: #3b82f6; }
.kanban-kart-baslik { font-weight: 600; color: #f3f4f6; margin-bottom: 4px; }
.kanban-kart-alt { color: #6b7280; font-size: 0.7rem; }
.kanban-kart-gelir { color: #34d399; font-size: 0.75rem; margin-top: 4px; }

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal-icerik {
  background: #1f2937;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  border: 1px solid #374151;
}

/* === SEKME === */
.sekme-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.sekme-btn.aktif { color: #60a5fa; border-bottom-color: #3b82f6; }

/* === İÇERİK KARTLAR === */
.icerik-kart {
  background: #111827;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #1f2937;
  cursor: pointer;
  transition: all 0.15s;
}
.icerik-kart:hover { border-color: #3b82f6; transform: translateY(-1px); }
.icerik-kart-baslik { font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; }
.icerik-kart-alt { color: #6b7280; font-size: 0.75rem; }

/* === DURUM ETİKETLERİ === */
.durum { padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.durum-yeni { background: #1e3a5f; color: #60a5fa; }
.durum-iletisimde { background: #3f2a00; color: #fbbf24; }
.durum-teklif { background: #2d1b00; color: #fb923c; }
.durum-kazanildi { background: #052e16; color: #34d399; }
.durum-kaybedildi { background: #2d1515; color: #f87171; }

/* === ARAC SONUCU === */
.arac-sonuc {
  background: #0f2d1f;
  border: 1px solid #166534;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: #86efac;
  margin-top: 8px;
}

/* === HARİTA === */
#leaflet-harita {
  background: #111827;
}
.leaflet-container {
  background: #1f2937 !important;
  font-family: inherit;
}
.leaflet-tile {
  filter: brightness(0.85) saturate(0.7) hue-rotate(200deg);
}
.leaflet-control-zoom a {
  background: #1f2937 !important;
  color: #9ca3af !important;
  border-color: #374151 !important;
}
.leaflet-control-zoom a:hover {
  background: #374151 !important;
  color: #f3f4f6 !important;
}
.leaflet-tooltip {
  background: #1f2937;
  border: 1px solid #374151;
  color: #f3f4f6;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.leaflet-tooltip::before { border-top-color: #374151; }
.leaflet-popup-content-wrapper {
  background: #1f2937;
  border: 1px solid #374151;
  color: #f3f4f6;
}
.leaflet-popup-tip { background: #1f2937; }

/* === SESLİ SOHBET === */
#sesli-dalga {
  transition: all 0.8s ease-out;
  opacity: 0;
  transform: scale(1);
}
#sesli-baykus {
  transition: transform 0.3s ease-in-out;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
