/* static/css/notifications.css — колокольчик, поповер, тосты */

/* ── колокольчик в шапке ── */
.notif-wrap {
  position: relative;
  margin-left: auto;  
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
}
.notif-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.15s ease;
  opacity: 0.85;
}
.notif-trigger:hover { opacity: 1; }
.notif-bell { font-size: 18px; line-height: 1; }
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

/* ── поповер ── */
.notif-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 440px;
  max-height: 420px;
  overflow-y: auto;
  background: rgba(18, 18, 28, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.03),
      0 0 24px rgba(139, 92, 246, 0.15);
  z-index: 2000;
}
.notif-wrap.is-open .notif-popover { display: block; }

.notif-pop-head {
  padding: 8px 12px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #c8d0e0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.notif-pop-empty {
  padding: 24px 14px;
  text-align: center;
  font-size: 13px;
  color: #8a93a6;
}
.notif-pop-list { padding: 6px; }

.notif-pop-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.notif-pop-item:hover { background: rgba(139, 92, 246, 0.1); }
.notif-pop-item.is-unread { background: rgba(139, 92, 246, 0.06); }
.notif-pop-icon { width: 18px; height: 18px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; color: #a78bfa; }
.notif-pop-icon svg { width: 16px; height: 16px; display: block; }
.notif-pop-text { min-width: 0; flex: 1; }
.notif-pop-title {
  font-size: 13px;
  font-weight: 600;
  color: #e6e9f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-pop-sub {
  font-size: 12px;
  color: #9aa3b5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-pop-time { font-size: 11px; color: #6f7889; margin-top: 2px; }

.notif-st--error .notif-pop-title { color: #ff8a8a; }
.notif-st--cancelled .notif-pop-title { color: #c8a96a; }

/* ── тосты снизу ── */
.notif-toast-box {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
}
.notif-toast {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: #232a3a;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 3px solid #4f7cff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: #e6e9f0;
  cursor: pointer;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.notif-toast.is-shown { opacity: 1; transform: translateX(0); }
.notif-toast--error { border-left-color: #e5484d; }
.notif-toast--cancelled { border-left-color: #c8a96a; }
.notif-toast--done { border-left-color: #46a758; }
.notif-toast-icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #a78bfa; }
.notif-toast-icon svg { width: 18px; height: 18px; display: block; }
.notif-toast-body { min-width: 0; }
.notif-toast-title { font-size: 13px; font-weight: 600; }
.notif-toast-sub {
  font-size: 12px;
  color: #9aa3b5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}