/* === ALERTS TOAST CONTAINER === */
.alert-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: 360px;
  pointer-events: none;
}

/* === ALERT TOAST === */
.alert-toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  pointer-events: auto;
  animation: toast-in 0.25s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alert-toast.dismissing {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

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

.alert-toast-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.alert-toast-sport {
  font-size: 0.72rem;
}

.alert-toast-detail {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.alert-toast-odds {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.alert-toast-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* === ALERT BUTTONS === */
.alert-btn {
  padding: 4px 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  line-height: 1.4;
}

.alert-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* === ALERTS SETTINGS BAR (nav) === */
.alerts-settings-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

.alerts-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: inherit;
}

.alerts-toggle-track {
  width: 32px;
  height: 18px;
  background: var(--border);
  border-radius: 9px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.alerts-toggle-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  position: absolute;
  top: 3px;
  left: 3px;
  transition: all 0.2s;
}

.alerts-toggle-btn.active .alerts-toggle-track {
  background: var(--accent);
}

.alerts-toggle-btn.active .alerts-toggle-thumb {
  left: 17px;
  background: var(--bg);
}

.alerts-history-btn {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 0.72rem;
  cursor: pointer;
  font-family: inherit;
}

.alerts-history-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* === ALERTS HISTORY PANEL === */
#alerts-history-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

#alerts-history-panel.open {
  max-height: 400px;
}

.alerts-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.alerts-history-list {
  overflow-y: auto;
  max-height: 340px;
  padding: 0 24px 12px;
}

.alerts-history-item {
  display: grid;
  grid-template-columns: 48px 1fr 56px auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.alerts-history-empty {
  color: var(--text-muted);
  padding: 16px 0;
  font-size: 0.82rem;
}

/* === SHIFT COLORS === */
.shift-up   { color: var(--ev-positive); }
.shift-down { color: #f87171; }
