/* ==========================================================================
   flash.css -- Flash Toast Notification Styles
   Full-width banner at top of page. Green success, red error.
   Auto-dismiss with fade-out animation. Close button.
   ========================================================================== */

.flash-toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.flash-success {
  background: rgba(0, 184, 148, 0.15);
  color: var(--success);
  border-bottom: 3px solid var(--success);
}

.flash-error {
  background: rgba(255, 118, 117, 0.15);
  color: var(--danger);
  border-bottom: 3px solid var(--danger);
}

.flash-warning {
  background: rgba(253, 203, 110, 0.15);
  color: #b8860b;
  border-bottom: 3px solid #f0ad4e;
}

.flash-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}

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

.flash-fade-out {
  animation: flashFadeOut 0.3s ease-out forwards;
}

@keyframes flashFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}
