#flash_messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: 350px;
  max-width: 90%;
}

.flash-message {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 0.375rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slide-in 0.3s ease-out;
  opacity: 1;
  transition: opacity 0.3s, transform 0.3s;
}

.flash-message.dismissing {
  opacity: 0;
  transform: translateX(30px);
}

.flash-visibility {
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  animation: fade-in 0.3s ease-out;
}

.flash-visibility.dismissing {
  animation: fade-out 0.3s ease-out;
}

.flash-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flash-dismiss {
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  opacity: 0.7;
  font-size: 1.25rem;
  line-height: 1;
}

.flash-dismiss:hover {
  opacity: 1;
}

.flash-notice {
  background-color: #d1fae5;
  color: #065f46;
}

.flash-error {
  background-color: #fee2e2;
  color: #991b1b;
}

.flash-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.flash-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

@keyframes slide-in {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
} 