/* ============================================================================
   css/components/badges.css — Status Pills, Toasts, Tags (v1)
   ----------------------------------------------------------------------------
   Small, colored status/labeling elements: toast variant colors, filter
   chips, settings connection-status pills, the detail-card name badge,
   and login form/modal inline status messages.
   ============================================================================ */

/* ── Toast type colors (works with existing #__toast__ shim) ── */
#__toast__.toast-success { background: #1f8a4c; }
#__toast__.toast-danger  { background: #c0392b; }
#__toast__.toast-warning { background: #b5840c; }
#__toast__.toast-info    { background: #222; }
#__toast__ .toast-ico { margin-right: 7px; }


/* ── Filter chip pill (search bar) ── */
#filter_params h6 {
  background: #fff;
  border: 1.5px solid var(--app-theme-color);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--app-theme-color);
  margin: 0;
}

/* ══════════════════════════════════════════════
   SETTINGS — connection status pills
   (moved from inline <style> in settings.html)
══════════════════════════════════════════════ */
.status-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 8px 0; border-bottom: 1px solid #f0f0f0;
}
.status-row:last-child { border-bottom: none; }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-pill.ok      { background: #e3f7e9; color: #1d8a4a; }
.status-pill.warn    { background: #fdecea; color: #c0392b; }
.status-pill.unknown { background: #f0f0f0; color: #888; }

/* ══════════════════════════════════════════════
   DETAIL CARD — role badge
   (moved from inline <style> in student-view.html)
══════════════════════════════════════════════ */
.dcard-badge {
  display: inline-block; background: rgba(255,255,255,.2); border-radius: 20px;
  padding: 2px 12px; font-size: 12px; font-weight: 600;
}

/* ══════════════════════════════════════════════
   LOGIN — inline form/modal status messages & toast
   (moved from inline <style> in login.html and css/login.css)
══════════════════════════════════════════════ */
.modal-msg { font-size: 12.5px; padding: 8px 12px; border-radius: 8px; margin-top: 8px; display: none; }
.modal-msg.success { background: #e3f7e9; color: #1d8a4a; display: block; }
.modal-msg.error   { background: #fdecea; color: #c0392b; display: block; }

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--brand, #2B2640); color: #fff;
  padding: 11px 22px; border-radius: 22px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  white-space: nowrap; z-index: 999;
  box-shadow: 0 8px 24px rgba(43,38,64,.3);
  max-width: 90vw; text-align: center;
}
.toast.show    { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error   { background: var(--danger, #e74c3c); }
.toast.success { background: var(--success, #27ae60); }
