/* Flash message alerts */
.alert {
  padding: 16px 20px;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.alert__close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0;
  flex-shrink: 0;
}

.alert__close:hover {
  opacity: 1;
}

.alert--fade-out {
  opacity: 0;
}

.alert--success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert--error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .alert {
    margin: 16px;
    padding: 12px 16px;
    font-size: 14px;
  }
}
