#alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.alert {
  position: relative;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  animation: slideIn 0.3s ease-out;
  display: flex;
  align-items: flex-start;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  margin-right: 1rem;
}

.alert-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.alert p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.alert-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-close:hover {
  opacity: 1;
}

.alert-success {
  background-color: #dcfce7;
  color: #059669;
  border: 1px solid #059669;
}

.alert-success .alert-icon {
  color: #059669;
}

.alert-error {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #dc2626;
}

.alert-error .alert-icon {
  color: #dc2626;
}

@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Optional: Add a slide-out animation */
.alert.hiding {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
  to {
    transform: translateY(-1rem);
    opacity: 0;
  }
}
