/* ══════════════════════════════════════════════════════════════════════
   sidebar.css  — v2.1  SEDEF BEYAZ TEMA
   Tursan eSanayi  ·  Altın (#C9A84C) + Lacivert (#0f1a35)
══════════════════════════════════════════════════════════════════════ */

/* ── OVERLAY ─────────────────────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 35, 0.55);
  z-index: 1040;
  backdrop-filter: none;
  -webkit-backdrop-filter: blur(4px);
}
.sidebar-overlay.aktif { display: block; }

/* ── PANEL ───────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 385px;
  background:#ffffff;
  border-left: 1.5px solid rgba(201, 168, 76, 0.18);
  box-shadow: -16px 0 48px rgba(8, 15, 35, 0.18),
              -2px  0  8px rgba(201, 168, 76, 0.06);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}
.sidebar.hidden { transform: translateX(110%); }

/* ── HEADER ──────────────────────────────────────────────────────────── */
.sb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  background: linear-gradient(135deg, #0d1b3e 0%, #0f1a35 60%, #111d3a 100%);
  flex-shrink: 0;
  border-bottom: 2px solid #C9A84C;
  position: relative;
}
.sb-header::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
}
.sb-baslik {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.4px;
}
.sb-baslik i { font-size: 1.05rem; color: #C9A84C; }

.sb-kapat-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(201, 168, 76, 0.08);
  color: #C9A84C;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}
.sb-kapat-btn:hover {
  background: rgba(201, 168, 76, 0.22);
  border-color: #C9A84C;
}

/* ── SEKMELER ────────────────────────────────────────────────────────── */
.sb-sekmeler {
  display: flex;
  overflow-x: auto;
  background: linear-gradient(180deg, #1e3060 0%, #2a3f72 100%);
  border-bottom: 1.5px solid rgba(201,168,76,0.25);
  flex-shrink: 0;
  scrollbar-width: none;
  padding: 9px 13px;
  gap: 6px;
}
.sb-sekmeler::-webkit-scrollbar { display: none; }

.sb-sekme-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}
.sb-sekme-btn:hover {
  border-color: rgba(201,168,76,0.6);
  color: #ffd97a;
  background: rgba(201,168,76,0.12);
}
.sb-sekme-btn.aktif {
  background: linear-gradient(135deg, #C9A84C, #a8852f);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.38);
}

/* ── BODY ────────────────────────────────────────────────────────────── */
.sb-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  scrollbar-width: thin;
  scrollbar-color: #d4cfc8 transparent;
}
.sb-body::-webkit-scrollbar { width: 3px; }
.sb-body::-webkit-scrollbar-thumb {
  background: #d4cfc8;
  border-radius: 99px;
}

/* ── GRUP KARTLARI ───────────────────────────────────────────────────── */
.sb-grup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(8, 15, 35, 0.05);
}
.sb-grup:hover {
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: 0 3px 10px rgba(201, 168, 76, 0.08);
}

.sb-etiket {
  font-size: 0.69rem;
  font-weight: 700;
  color: #5a6282;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sb-etiket i { font-size: 0.85rem; color: #C9A84C; }

/* ── INPUT & SELECT ──────────────────────────────────────────────────── */
.sb-input,
.sb-select {
  width: 100%;
  padding: 9px 13px;
  font-size: 0.85rem;
  color: #1a2240;
  background: #ffffff;
  border: 1.5px solid #e5e1da;
  border-radius: 9px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Poppins', sans-serif;
  appearance: none;
  -webkit-appearance: none;
}
.sb-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 16 16'%3E%3Cpath fill='%23a09880' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
}
.sb-input:focus,
.sb-select:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.13);
  background: #fffef9;
}
.sb-input::placeholder { color: #b5b0a6; font-size: 0.81rem; }

/* ── FİYAT RANGE ─────────────────────────────────────────────────────── */
.sb-fiyat-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-fiyat-input-wrap { flex: 1; position: relative; }
.sb-fiyat-prefix {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem; font-weight: 700; color: #C9A84C;
  pointer-events: none;
}
.sb-fiyat-input { padding-left: 26px !important; }
.sb-fiyat-ayrac { font-size: 1rem; color: #b5b0a6; flex-shrink: 0; }

.sb-hizli-fiyat {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.sb-hizli-btn {
  padding: 4px 11px;
  border-radius: 16px;
  border: 1.5px solid #ddd8d0;
  background: #faf9f7;
  color: #4a5068;
  font-size: 0.71rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Poppins', sans-serif;
}
.sb-hizli-btn:hover,
.sb-hizli-btn.aktif {
  background: rgba(201, 168, 76, 0.1);
  border-color: #C9A84C;
  color: #7a5c10;
}

/* ── CHİP GRUBU ──────────────────────────────────────────────────────── */
.sb-chip-grup {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sb-chip {
  padding: 5px 13px;
  border-radius: 20px;
  border: 1.5px solid #ddd8d0;
  background: #faf9f7;
  color: #4a5068;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Poppins', sans-serif;
  user-select: none;
}
.sb-chip:hover {
  border-color: #C9A84C;
  color: #7a5c10;
  background: rgba(201, 168, 76, 0.07);
}
.sb-chip.aktif {
  background: linear-gradient(135deg, #C9A84C, #a8852f);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.32);
}

/* ── TOGGLE ──────────────────────────────────────────────────────────── */
.sb-toggle-satir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sb-toggle-etiket {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1a2240;
}
.sb-toggle-aciklama {
  font-size: 0.72rem;
  color: #9a9690;
  margin-top: 2px;
}
.sb-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.sb-toggle input { display: none; }
.sb-toggle-track {
  display: inline-block;
  width: 44px; height: 24px;
  background: #ddd8d0;
  border-radius: 99px;
  position: relative;
  transition: background 0.25s;
  border: 1.5px solid #ccc8c0;
}
.sb-toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(8, 15, 35, 0.2);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sb-toggle input:checked ~ .sb-toggle-track {
  background: linear-gradient(135deg, #C9A84C, #a8852f);
  border-color: transparent;
}
.sb-toggle input:checked ~ .sb-toggle-track .sb-toggle-thumb {
  transform: translateX(20px);
}

/* ── TARİH ───────────────────────────────────────────────────────────── */
.sb-tarih-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sb-tarih-grup { display: flex; flex-direction: column; gap: 4px; }
.sb-tarih-label { font-size: 0.69rem; color: #9a9690; font-weight: 600; }

/* ── BOŞ MESAJ ───────────────────────────────────────────────────────── */
.sb-bos {
  text-align: center;
  color: #b5b0a6;
  font-size: 0.85rem;
  padding: 32px 0;
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.sb-footer {
  padding: 14px 16px;
  border-top: 1.5px solid rgba(201, 168, 76, 0.15);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #f2f0ed 0%, #ede9e3 100%);
}
.sb-temizle-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid #ddd8d0;
  background: rgba(255, 255, 255, 0.8);
  color: #5a6282;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Poppins', sans-serif;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.sb-temizle-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}
.sb-uygula-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #C9A84C, #a8852f);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.1s;
  font-family: 'Poppins', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 3px 14px rgba(201, 168, 76, 0.38);
  letter-spacing: 0.3px;
}
.sb-uygula-btn:hover  { opacity: 0.9; }
.sb-uygula-btn:active { transform: scale(0.98); }

/* ── KONTROL-WRAP'TEKİ TOGGLE BUTON ─────────────────────────────────── */
.sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.sidebar-toggle-btn.aktif-filtre {
  background: rgba(201, 168, 76, 0.12);
  border-color: #C9A84C;
  color: #C9A84C;
}
.sidebar-filtre-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #C9A84C;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

/* ── TABLET ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { width: 320px; }
}

/* ── MOBİL ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .sidebar { width: 100%; border-left: none; }
  .sb-sekmeler { padding: 7px 10px; gap: 4px; }
  .sb-sekme-btn { padding: 8px 14px; font-size: 0.78rem; }
  .sb-body { padding: 14px 12px; }
  .sb-grup { padding: 12px 12px; }
  .sb-input, .sb-select { padding: 11px 13px; font-size: 0.9rem; }
  .sb-kapat-btn { width: 38px; height: 38px; font-size: 15px; }
  .sb-header { padding: 14px 16px; }
  .sb-temizle-btn, .sb-uygula-btn { padding: 12px 16px; font-size: 0.88rem; }
  .sb-chip { padding: 7px 14px; font-size: 0.82rem; }
  .sb-hizli-btn { padding: 6px 13px; font-size: 0.78rem; }
  .sidebar-toggle-btn { padding: 10px 14px !important; }
}