/* Üst çubuktaki bildirim zili ve açılır paneli (notifications.js). */
.notif-wrap { position: relative; margin-right: 14px; }
.notif-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid #dfe2ea; border-radius: 50%; background: #fff; color: #55596c; cursor: pointer; }
.notif-button:hover, .notif-button[aria-expanded="true"] { border-color: var(--purple); color: var(--purple); }
.notif-button.has-unread { color: var(--purple); }
.notif-badge { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px;
  background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; line-height: 14px; text-align: center; box-sizing: border-box; }

.notif-panel { position: absolute; top: calc(100% + 10px); right: -8px; z-index: 60; width: 380px; max-width: calc(100vw - 24px);
  border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 48px rgba(32, 36, 58, .16); overflow: hidden;
  animation: notif-in .14s ease-out; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .notif-panel { animation: none; } }
.notif-header, .notif-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.notif-header { border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.notif-footer { border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.notif-link { padding: 0; border: 0; background: none; color: var(--purple); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.notif-actions { display: inline-flex; align-items: center; gap: 14px; }
.notif-clear { color: #6b6f82; }
.notif-clear:hover { color: #e5484d; }
.notif-all-read { color: var(--muted); font-size: 12px; font-weight: 600; }
.notif-list { max-height: min(460px, calc(100vh - 180px)); overflow-y: auto; }
.notif-empty { padding: 28px 16px; color: var(--muted); font-size: 13px; text-align: center; }

.notif-item { display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 11px 16px; border: 0; border-bottom: 1px solid #f3f4f8;
  background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #f7f7fc; }
.notif-item.unread { background: #f5f3ff; }
.notif-item.unread:hover { background: #eeebfd; }
.notif-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; background: #eef0f6; color: #55596c; }
.notif-icon.whatsapp { background: #eafaf0; color: #128c4a; }
.notif-icon.email { background: #e7f0fa; color: #0a66c2; }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.notif-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.notif-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.notif-item.unread .notif-head b { font-weight: 700; }
.notif-head time { flex: none; color: var(--muted); font-size: 11px; }
.notif-company { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-preview { color: #55596c; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.notif-count { flex: none; min-width: 20px; height: 20px; margin-top: 1px; padding: 0 6px; border-radius: 999px; background: var(--purple);
  color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-sizing: border-box; }
.notif-dot {flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--purple); }

@media (max-width: 700px) {
  .notif-wrap { margin-right: 8px; }
  .notif-panel { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; }
}
