/* Flash Messages */
.flash-message {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 100%;
  max-width: 24rem;
  z-index: 50;
  transition: all 0.3s ease-in-out;
  transform: translateX(0);
  opacity: 1;
  margin-bottom: 0.5rem;
}

.flash-message.hidden {
  transform: translateX(100%);
  opacity: 0;
}

/* Message Types */
.flash-success {
  background-color: #f0fdf4;
  border-left: 4px solid #10b981;
  color: #065f46;
}

.flash-error {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

.flash-warning {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}

.flash-info {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}

/* Message Content */
.flash-content {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.flash-icon {
  flex-shrink: 0;
  margin-right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
}

.flash-message-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  margin: 0;
  flex-grow: 1;
}

.flash-close-btn {
  margin-left: 0.75rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.flash-close-btn:hover {
  opacity: 1;
}

.flash-close-icon {
  width: 1rem;
  height: 1rem;
  display: block;
}
