.alert {
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  font-size: 1.1rem;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.alert strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Error Alert */
.alert-error {
  background: #fff2f0;
  color: #cf1322;
  border: 1px solid #ffccc7;
  border-left: 5px solid #ff4d4f;
}

/* Warning Alert */
.alert-warning {
  background: #fffbe6;
  color: #ad8b00;
  border: 1px solid #ffe58f;
  border-left: 5px solid #ffc53d;
}

/* Success Alert */
.alert-success {
  background: #f6ffed;
  color: #389e0d;
  border: 1px solid #b7eb8f;
  border-left: 5px solid #52c41a;
}

/* White space handling for newlines in flash messages */
.alert {
  white-space: pre-line;
}

/* Hover effect */
.alert:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
