/* ============================================================
   admin.css — Gerçek uygulama override'ları
   ============================================================
   shared.css mockup "tarayıcı çerçevesi" (showcase/browser/caption)
   için tasarlanmış. Gerçek çalışan panelde o çerçeve yok; sayfa
   tam ekran. Tüm renkler/bileşenler shared.css'ten gelir — burada
   yalnızca sahne (stage) kabuğu nötrlenir. Hardcoded renk YOK;
   sadece shared.css değişkenleri kullanılır.
   ============================================================ */

html, body {
  height: 100%;
}

body {
  /* Mockup'ta koyu sahne + 40px padding vardı; gerçek panelde sayfa BG */
  background: var(--bg-page);
  padding: 0;
}

/* Tam ekran app shell */
.app {
  min-height: 100vh;
  height: 100vh;
}

.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
}

.main {
  height: 100vh;
  overflow: hidden;
}

/* İçerik alanı kendi içinde kayar, topbar/sidebar sabit kalır */
.content {
  overflow-y: auto;
  flex: 1;
}

/* Standalone login sayfası — sahne kabuğu olmadan ortalı */
.auth-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--bg-page);
}

/* Sunucu tarafı hata/bilgi şeridi (form üstünde) */
.alert {
  font-size: 12px;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.alert-error {
  background: var(--st-cancel-bg);
  color: var(--st-cancel);
  border: 1px solid var(--st-cancel);
}
.alert-ok {
  background: var(--st-done-bg);
  color: var(--st-done);
  border: 1px solid var(--st-done);
}

/* Checkbox ile sürülen toggle/check görünümü (JS'siz, mockup'a sadık).
   shared.css .toggle / .toggle.on ve .check / .check.checked'i taklit eder. */
.switch { display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch input:checked + .toggle { background: var(--accent); }
.switch input:checked + .toggle::after { left: 18px; }

.switch-check { display: inline-flex; cursor: pointer; align-items: center; }
.switch-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-check input:checked + .check .box {
  background: var(--accent);
  border-color: var(--accent);
}
.switch-check input:checked + .check .box svg { display: block; }

/* ── Toplu ürün yükleme — sürükle-bırak + önizleme ─────────────────
   Tüm renkler shared.css değişkenlerinden; hardcoded hex yok. */
.dropzone {
  margin-top: 16px;
  border: 2px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--bg-subtle);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--bg-warm);
}
.dropzone svg { color: var(--muted); }
.dz-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 6px;
}
.dz-hint {
  font-size: 12px;
  color: var(--text-2);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.55;
}
.dz-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.bulk-summary-band {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text);
}
.bulk-summary-band svg { color: var(--muted); flex-shrink: 0; }
.bulk-band-change {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.bulk-band-change:hover { text-decoration: underline; }
.bulk-issue-group {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.bulk-issue-group:last-child { border-bottom: none; }
.bulk-issue-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}
.bulk-issue-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
  padding: 3px 0;
}
.bulk-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
}
.bulk-sum-row:last-of-type { border-bottom: none; }
.bulk-sum-row span { color: var(--muted); }

/* ============================================================
   BİLDİRİM ÇANI — topbar rozeti + dropdown paneli
   Tüm renkler shared.css token'larından (hardcoded hex yok).
   ============================================================ */
.notif { position: relative; display: flex; }

/* Rozet pili — çan ikonu üzerinde okunmamış sayısı (0 ise render edilmez) */
.notif-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-card);
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

/* Dropdown paneli — çanın altına açılır (JS [hidden] ile yönetir) */
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 332px;
  max-height: 440px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(20, 18, 12, 0.13);
  z-index: 100;
}
.notif-panel[hidden] { display: none; }

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.notif-head-title { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-readall {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  padding: 2px 4px;
}
.notif-readall:hover { color: var(--accent); text-decoration: underline; }

.notif-list { display: flex; flex-direction: column; }
.notif-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border-soft);
}
.notif-item:last-child { border-bottom: none; }
.notif-item-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 6px 11px 14px;
  text-decoration: none;
  min-width: 0;
}
.notif-item-main:hover { background: var(--bg-hover); }
.notif-item-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--st-prep);
}
.notif-dot-new_customer { background: var(--st-ship); }
.notif-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notif-item-title { font-size: 12px; font-weight: 600; color: var(--text); }
.notif-item-body {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item-time {
  flex: none;
  font-size: 10px;
  color: var(--faint);
  white-space: nowrap;
  padding-top: 1px;
}
.notif-item-dismiss {
  flex: none;
  border: none;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  padding: 0 12px;
  display: flex;
  align-items: center;
}
.notif-item-dismiss:hover { color: var(--st-done); }

.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 20px;
  text-align: center;
}
.notif-empty-ic { color: var(--st-done); }
.notif-empty-text { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-empty-sub { font-size: 11px; color: var(--muted); }
