/* Flash Banner - Floating toast notifications */

#flash-messages {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000; /* Above modals */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none; /* Allow clicks through container */
  max-width: 90vw;
  width: 600px;
}

.flash-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
              0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0.9375rem;
  line-height: 1.4;
  pointer-events: auto; /* Re-enable clicks on banner itself */

  /* Animation states - start hidden */
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success/Notice banner - green theme */
.flash-banner-notice {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Error/Alert banner - red theme */
.flash-banner-alert {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enter animation - slide down and fade in */
.flash-banner-enter {
  opacity: 1;
  transform: translateY(0);
}

/* Exit animation - slide up and fade out */
.flash-banner-exit {
  opacity: 0;
  transform: translateY(-100%);
}

.flash-banner-content {
  flex: 1;
  font-weight: 500;
}

.flash-banner-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

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

.flash-banner-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #flash-messages {
    top: 0.5rem;
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
  }

  .flash-banner {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }
}
