/* Notification Bell */
.bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.bell-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0c2b5e;
  animation: bellPulse 2s ease-in-out infinite;
}

@keyframes bellPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Alert Toast (dedicated, separate from Utils.showToast) */
#alert-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1300;
  display: none;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 40px 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--brand-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  cursor: pointer;
  line-height: 1.4;
}

#alert-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.alert-toast-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.alert-toast-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-toast-msg {
  flex: 1;
  min-width: 0;
}

.alert-toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.alert-toast-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

/* Alert Panel (dropdown from bell) */
.alert-panel {
  position: fixed;
  top: 60px;
  right: 20px;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 90px);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  z-index: 400;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: all 0.2s var(--ease-out);
  pointer-events: none;
}

.alert-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.alert-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.alert-panel-mark-read {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.alert-panel-mark-read:hover {
  background: var(--bg-tertiary);
}

.alert-panel-section {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.alert-panel-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.alert-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.alert-panel-item:last-child {
  border-bottom: none;
}

.alert-panel-item:hover {
  background: var(--bg-soft);
}

.alert-panel-item.unread {
  background: rgba(12, 43, 94, 0.02);
}

.alert-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.alert-panel-item-content {
  flex: 1;
  min-width: 0;
}

.alert-panel-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.alert-panel-item-msg {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.alert-panel-item-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.alert-panel-item-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.alert-panel-item:hover .alert-panel-item-delete {
  opacity: 1;
}

.alert-panel-item-delete:hover {
  color: var(--brand-red);
  background: rgba(220, 53, 69, 0.08);
}
