/* Smart Residence — toast notifications (înlocuie #alert success) */

#alert .alert-success,
#alert .alert.alert-success.alert-dismissible {
  display: none !important;
}

.sr-toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.sr-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.sr-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-toast--success {
  border-color: #b8d4f0;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.sr-toast--error {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
}

.sr-toast__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
}

.sr-toast--success .sr-toast__icon {
  background: #e8f2fc;
  color: var(--global-palette1, #111827);
}

.sr-toast--error .sr-toast__icon {
  background: #fee2e2;
  color: #b91c1c;
}

.sr-toast__text {
  flex: 1 1 auto;
  margin: 0;
  padding: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: #111827;
}

.sr-toast__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
}

.sr-toast__close:hover {
  background: #f3f4f6;
  color: #374151;
}

@media (max-width: 767px) {
  .sr-toast-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
    align-items: stretch;
    max-width: none;
  }
}
