/**
 * Bildirim zili — admin paneli, sube secim paneli ve anasayfa navbari ortak kullanir.
 * panel.css icinde duruyordu; anasayfa yerlesimi panel.css yuklemedigi icin
 * bagimsiz dosyaya alindi.
 */
.notif-wrap { position: relative; }
.notif-btn {
    background: var(--primary-bg, #ffffff); border: 1px solid #e3e6f0; cursor: pointer;
    color: var(--sidebar-text, #4a5568); font-size: 1.1rem; width: 36px; height: 36px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    position: relative; transition: all .3s;
}
.notif-btn:hover { border-color: #4e73df; color: #4e73df; }
.notif-count {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
    padding: 0 5px; border-radius: 9px; background: #e53e3e; color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
}
.notif-panel {
    position: absolute; top: 46px; right: 0; width: 360px; max-width: calc(100vw - 32px);
    background: #fff; border: 1px solid #e3e6f0; border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0,0,0,.14); z-index: 1200; overflow: hidden;
}
.notif-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 15px; border-bottom: 1px solid #e3e6f0;
    font-size: 13.5px; font-weight: 700; color: #3a3b45;
}
.notif-clearall {
    background: none; border: none; color: #e53e3e; font-size: 12px;
    font-weight: 600; cursor: pointer; padding: 0;
}
.notif-clearall:hover { text-decoration: underline; }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif-empty { padding: 22px 15px; margin: 0; text-align: center; font-size: 13px; color: #a1a4b3; }
.notif-item {
    display: flex; gap: 10px; padding: 12px 15px; border-bottom: 1px solid #f0f1f6;
    border-left: 3px solid transparent; cursor: default;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: #f5f8ff; cursor: pointer; }
.notif-item.unread:hover { background: #eaf0ff; }
.notif-item-icon { font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.notif-item--bilgi  { border-left-color: #4e73df; }
.notif-item--bilgi  .notif-item-icon { color: #4e73df; }
.notif-item--basari { border-left-color: #3fcf8e; }
.notif-item--basari .notif-item-icon { color: #3fcf8e; }
.notif-item--uyari  { border-left-color: #f0ad4e; }
.notif-item--uyari  .notif-item-icon { color: #f0ad4e; }
.notif-item--hata   { border-left-color: #e53e3e; }
.notif-item--hata   .notif-item-icon { color: #e53e3e; }
.notif-item-body { min-width: 0; flex: 1; }
.notif-item-title { font-size: 13.5px; font-weight: 700; color: #3a3b45; margin-bottom: 3px; }
.notif-item-text  { font-size: 12.5px; line-height: 1.5; color: #6b6d7a; }
.notif-item-kod {
    display: inline-block; margin-top: 7px; padding: 4px 12px; border-radius: 6px;
    background: #fff5ee; border: 1px dashed #ff6818; color: #ff6818;
    font-size: 13px; font-weight: 800; letter-spacing: 1px;
}
.notif-item-link { display: inline-block; margin-top: 7px; font-size: 12.5px; font-weight: 600; color: #4e73df; }
.notif-item-date { margin-top: 6px; font-size: 11px; color: #a1a4b3; }
/* Satır içi silme düğmesi — yalnızca satırın üzerine gelince belirginleşir. */
.notif-del {
    background: none; border: none; padding: 0; margin-left: 4px; cursor: pointer;
    color: #c3c6d4; font-size: 13px; line-height: 1; align-self: flex-start;
    flex-shrink: 0; opacity: .6; transition: color .2s, opacity .2s;
}
.notif-item:hover .notif-del { opacity: 1; }
.notif-del:hover { color: #e53e3e; }

body.dark-mode .notif-btn { background: #2d2d2d; border-color: #444; color: #e0e0e0; }
body.dark-mode .notif-btn:hover { border-color: #6ba2ff; color: #6ba2ff; }
body.dark-mode .notif-panel { background: #1e1e1e; border-color: #444; }
body.dark-mode .notif-panel-head { border-bottom-color: #444; color: #e0e0e0; }
body.dark-mode .notif-clearall { color: #ff7a7a; }
body.dark-mode .notif-del { color: #808080; }
body.dark-mode .notif-del:hover { color: #ff7a7a; }
body.dark-mode .notif-empty { color: #808080; }
body.dark-mode .notif-item { border-bottom-color: #333; }
body.dark-mode .notif-item.unread { background: #23293a; }
body.dark-mode .notif-item.unread:hover { background: #2b3348; }
body.dark-mode .notif-item-title { color: #e0e0e0; }
body.dark-mode .notif-item-text { color: #c0c0c0; }
body.dark-mode .notif-item-date { color: #808080; }
body.dark-mode .notif-item-link { color: #6ba2ff; }
body.dark-mode .notif-item-kod { background: #2f2418; border-color: #ff8c4d; color: #ff9f66; }

/* ── Anasayfa navbarı — koyu/saydam zemin varyantı ────────────────
   Navbar beyaz metinli ve saydam olduğu için varsayılan beyaz düğme
   orada okunmaz; sepet düğmesiyle aynı görünüme çevrilir. */
.notif-btn--nav {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    width: 38px; height: 38px;
    color: #fff;
    font-size: 16px;
}
.notif-btn--nav:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.7); color: #fff; }
.notif-btn--nav .notif-count { top: -6px; right: -6px; background: #ff6818; }
/* Panel içi açılır kutu her zaman açık zeminlidir; navbar altında da öyle kalır */
.notif-btn--nav + .notif-panel { color: #333; }
.notif-btn--nav + .notif-panel .notif-item-title { color: #3a3b45; }
.notif-btn--nav + .notif-panel .notif-item-text { color: #6b6d7a; }
