/* ── Live submission notification banners ── */

.notif-container {
  position: fixed;
  top: 0;
  left: var(--sidebar-w-collapsed, 56px);
  right: 0;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.notif-banner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 2px solid rgba(239, 68, 68, 0.6);
  color: #e2e8f0;
  font-size: 13px;
  transform: translateY(-100%);
  opacity: 0;
  animation: notifSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.notif-banner.notif-out {
  animation: notifSlideUp 0.3s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

/* SMS variant — purple border */
.notif-banner.notif-sms {
  border-bottom-color: rgba(168, 85, 247, 0.6);
}

/* Batch summary — amber border */
.notif-banner.notif-batch {
  border-bottom-color: rgba(251, 191, 36, 0.6);
}
.notif-banner.notif-batch .notif-icon { color: #fbbf24; }

.notif-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}
.notif-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notif-banner.notif-sms .notif-icon { color: #a855f7; }

.notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-title {
  font-weight: 600;
  font-size: 13px;
  color: #f1f5f9;
}
.notif-detail {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: notifPulse 1.5s ease-in-out infinite;
}
.notif-banner.notif-sms .notif-dot { background: #a855f7; }
.notif-banner.notif-batch .notif-dot { background: #fbbf24; }

@keyframes notifPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes notifSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes notifSlideUp {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-100%); opacity: 0; }
}

/* ── Sidebar pause button ── */
.sidebar-notif-toggle {
  border-radius: 8px;
  padding: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.06);
  color: #e5e7eb;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: width 0.2s ease, padding 0.2s ease, border-radius 0.2s ease, gap 0.2s ease;
}
.sidebar:hover .sidebar-notif-toggle {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 14px;
  border-radius: 10px;
  gap: 10px;
}
.sidebar-notif-toggle:hover { border-color: var(--accent); color: var(--accent); }
.sidebar-notif-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-notif-toggle-icon svg { display: block; }
.sidebar-notif-toggle-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.15s ease;
}
.sidebar:hover .sidebar-notif-toggle-label { opacity: 1; width: auto; }

/* Paused state — amber highlight */
.sidebar-notif-toggle.notif-paused {
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}
.sidebar-notif-toggle.notif-paused:hover {
  border-color: rgba(251, 191, 36, 0.7);
  color: #fbbf24;
}

@media (max-width: 768px) {
  .notif-container {
    left: 0;
  }
}
