/* ================================
   ALERT SYSTEM – STRONG ENTERPRISE UI
================================ */

.alert-system {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  width: min(420px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Base Alert */
.alert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #ffffff;

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 3px 8px rgba(0, 0, 0, 0.12);

  opacity: 0;
  transform: translateX(120%);
  transition:
    transform 0.45s cubic-bezier(.22,1,.36,1),
    opacity 0.3s ease;

  isolation: isolate;
  will-change: transform, opacity;
}

/* Content */
.alert__content {
  flex: 1;
}

.alert__message {
  margin: 0;
  word-break: break-word;
}

/* Close Button */
.alert__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: opacity 0.2s ease;
}

.alert__close:hover {
  opacity: 1;
}

/* Visible State */
.alert.show {
  opacity: 1;
  transform: translateX(0);
}

/* ================================
   SEVERITY STYLES – STRONG COLORS
================================ */

/* Success */
.alert--success {
  background-color: #16a34a;
}

/* Error / Danger */
.alert--error,
.alert--danger {
  background-color: #dc2626;
}

/* Warning */
.alert--warning {
  background-color: #d97706;
}

/* Info */
.alert--info {
  background-color: #0284c7;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .alert {
    transition: none;
  }
}
