/* ui/notifications-ui.css — web bell dropdown + toast banner */

.mg-bell-btn {
  position: relative;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  margin-right: 4px;
}

.mg-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--mg-critical);
  color: var(--mg-on-accent);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.mg-bell-panel {
  position: fixed;
  top: 56px;
  right: 16px;
  width: 340px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1500;
}

.mg-bell-panel-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--mg-border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mg-text);
}

.mg-bell-panel-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mg-bell-sound-btn {
  border: none;
  background: none;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 4px;
}
.mg-bell-clear-btn {
  border: none;
  background: none;
  font-size: 12px;
  color: var(--mg-accent);
  cursor: pointer;
  padding: 2px 4px;
}

.mg-bell-panel-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.mg-bell-empty {
  padding: 24px 16px;
  color: var(--mg-text-3);
  font-size: 13px;
  text-align: center;
}

.mg-bell-row {
  position: relative;
  padding: 12px 28px 12px 14px;
  border-bottom: 1px solid var(--mg-border);
  cursor: pointer;
}

.mg-bell-row-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: none;
  font-size: 15px;
  line-height: 1;
  color: var(--mg-text-3);
  cursor: pointer;
  padding: 2px 6px;
}
.mg-bell-row:last-child {
  border-bottom: none;
}
.mg-bell-row.is-unread {
  background: var(--mg-accent-tint);
}

.mg-bell-row-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mg-text);
}
.mg-bell-row-body {
  font-size: 12.5px;
  color: var(--mg-text-2);
  margin-top: 2px;
}
.mg-bell-row-time {
  font-size: 11px;
  color: var(--mg-text-3);
  margin-top: 4px;
}

.mg-bell-row-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.mg-bell-row-actions button {
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--mg-border);
  background: var(--mg-surface);
  cursor: pointer;
}

/* Popup toasts stack bottom-right, newest on top of the stack. */
#mg-bell-toast-host {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  align-items: flex-end;
}

.mg-bell-toast {
  position: relative;
  width: 300px;
  background: var(--mg-inverse-surface);
  color: var(--mg-on-inverse);
  border-radius: 12px;
  padding: 12px 30px 12px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mg-bell-toast--visible {
  opacity: 1;
  transform: translateY(0);
}
.mg-bell-toast-main {
  cursor: pointer;
}
.mg-bell-toast-title {
  font-size: 13px;
  font-weight: 600;
}
.mg-bell-toast-body {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.mg-bell-toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.mg-bell-toast-close:hover {
  color: var(--mg-on-accent);
}

.mg-bell-toast-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.mg-bell-toast-actions button {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--mg-on-accent);
  cursor: pointer;
}
