/* Alerts and Flash Messages */

.alert {
  padding: 0.875rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  position: relative;
  font-size: 0.9375rem;
  transition: opacity 0.3s ease-out;
}

.alert p {
  margin-bottom: 0;
}

.alert-success {
  background-color: var(--color-success-bg);
  border-color: #a7f3d0;
  color: #065f46;
}

.alert-error,
.alert-danger {
  background-color: var(--color-danger-bg);
  border-color: #fca5a5;
  color: #991b1b;
}

.alert-warning {
  background-color: var(--color-warning-bg);
  border-color: #fcd34d;
  color: #92400e;
}

.alert-info,
.alert-notice {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.alert-dismissible {
  padding-right: 3rem;
}

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

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

/* Flash messages container */
.flash-messages .alert:last-child {
  margin-bottom: 0;
}
