/* Base Alert */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  animation: slideIn var(--transition-base);
}

@keyframes slideIn {
  from {
    transform: translateX(-10px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.alert__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.alert__content {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.alert__title {
  font-weight: 600;
  margin-bottom: 2px;
  display: block;
}

.alert__description {
  font-size: 13px;
  opacity: 0.9;
}

.alert__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--transition-base);
  margin-left: auto;
}

.alert__close:hover {
  opacity: 1;
}

/* Variant: Info */
.alert--info {
  border-left-color: var(--color-info);
  background: rgba(56, 189, 248, 0.1);
  color: #e0f2fe;
}

/* Variant: Success */
.alert--success {
  border-left-color: var(--color-success);
  background: rgba(52, 211, 153, 0.1);
  color: #d1fae5;
}

/* Variant: Warning */
.alert--warning {
  border-left-color: var(--color-warning);
  background: rgba(255, 107, 53, 0.1);
  color: #ffedd5;
}

/* Variant: Error */
.alert--error {
  border-left-color: var(--color-error);
  background: rgba(248, 113, 113, 0.1);
  color: #fee2e2;
}

/* Toast (Small notification variant) */
.toast {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  max-width: 400px;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.toast--bottom-left {
  bottom: var(--spacing-lg);
  right: auto;
  left: var(--spacing-lg);
}

.toast--top-right {
  bottom: auto;
  right: var(--spacing-lg);
  top: var(--spacing-lg);
}

.toast--top-left {
  bottom: auto;
  right: auto;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
}
