/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: 400px;
  width: 100%;
}

.flash-message {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(0);
  transition: all 0.3s ease-in-out;
}

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

.flash-content {
  flex: 1;
  margin-right: 0.75rem;
  font-weight: 500;
}

.flash-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.125rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.flash-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.flash-close svg {
  width: 1rem;
  height: 1rem;
}

.flash-close-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Flash message types */
.flash-notice {
  background: var(--success);
  color: var(--white);
}

.flash-alert {
  background: var(--error);
  color: var(--white);
}

.flash-warning {
  background: var(--warning);
  color: var(--white);
}

.flash-info {
  background: var(--primary-blue);
  color: var(--white);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .flash-messages {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    transform: none;
    max-width: none;
  }

  .flash-message {
    padding: 0.75rem;
  }

  .flash-content {
    margin-right: 0.5rem;
    font-size: 0.875rem;
  }
}