/* ============================================================
   AZELO — Pop-up alert (toast) notifications
   success = green, error = red, info = blue, warning = orange
   ============================================================ */
.azelo-toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: min(400px, calc(100vw - 40px));
  pointer-events: none;
}

.azelo-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, #171d33 0%, #12162a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  color: #f0f3ff;
  font-size: 13.5px;
  line-height: 1.5;
  min-width: min(340px, calc(100vw - 40px));
  transform: translateX(120%) scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
}

.azelo-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--azelo-accent, #6ea8ff);
}

.azelo-toast.show {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.azelo-toast.hide {
  transform: translateX(120%) scale(0.96);
  opacity: 0;
}

.azelo-toast-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 1px;
}

.azelo-toast-body {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.azelo-toast-title {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
}

.azelo-toast-message {
  color: #bcc3e0;
  font-size: 13px;
}

.azelo-toast-body ul {
  margin: 4px 0 0;
  padding-left: 18px;
  color: #bcc3e0;
  font-size: 13px;
}

.azelo-toast-body ul li + li {
  margin-top: 2px;
}

.azelo-toast-close {
  flex-shrink: 0;
  margin: -4px -6px -4px 0;
  background: none;
  border: none;
  color: rgba(240, 243, 255, 0.45);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}

.azelo-toast-close:hover {
  color: #f0f3ff;
  background: rgba(255, 255, 255, 0.08);
}

/* type accents */
.azelo-toast-success { --azelo-accent: #7ee0a0; }
.azelo-toast-success .azelo-toast-icon { color: #7ee0a0; background: rgba(126, 224, 160, 0.12); }

.azelo-toast-error { --azelo-accent: #ff6b6b; }
.azelo-toast-error .azelo-toast-icon { color: #ff6b6b; background: rgba(255, 107, 107, 0.12); }

.azelo-toast-info { --azelo-accent: #6ea8ff; }
.azelo-toast-info .azelo-toast-icon { color: #6ea8ff; background: rgba(110, 168, 255, 0.12); }

.azelo-toast-warning { --azelo-accent: #ffb86c; }
.azelo-toast-warning .azelo-toast-icon { color: #ffb86c; background: rgba(255, 184, 108, 0.12); }

@media (max-width: 480px) {
  .azelo-toast-stack {
    top: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
  }
  .azelo-toast {
    min-width: calc(100vw - 24px);
  }
}
