/* Django messages — Bootstrap toast notifications */

.toast-messages-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast-messages-container .toast {
  pointer-events: auto;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  min-width: 300px;
}

.toast-messages-container .toast-header {
  border-bottom: none;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
}

.toast-messages-container .toast-body {
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #334155;
}

.rh-toast__icon {
  font-size: 1rem;
}

.rh-toast--success .toast-header {
  background: #ecfdf5;
  color: #065f46;
}

.rh-toast--success .rh-toast__icon {
  color: #059669;
}

.rh-toast--danger .toast-header {
  background: #fef2f2;
  color: #991b1b;
}

.rh-toast--danger .rh-toast__icon {
  color: #dc2626;
}

.rh-toast--warning .toast-header {
  background: #fffbeb;
  color: #92400e;
}

.rh-toast--warning .rh-toast__icon {
  color: #d97706;
}

.rh-toast--info .toast-header {
  background: #eff6ff;
  color: #1e40af;
}

.rh-toast--info .rh-toast__icon {
  color: #2563eb;
}

.rh-toast--secondary .toast-header {
  background: #f8fafc;
  color: #334155;
}

@media (max-width: 575px) {
  .toast-messages-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .toast-messages-container .toast {
    min-width: 0;
    width: 100%;
  }
}
