/**
 * Flash Messages - Blueprint Noir Design
 * Toast-style notification system with slide-in animations
 */

.flash-messages-container {
  position: fixed;
  top: 6rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

@media (max-width: 640px) {
  .flash-messages-container {
    top: 5rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

.flash-message {
  padding: 1.25rem 1.5rem;
  background: rgba(26, 31, 38, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong), 0 0 24px rgba(0, 0, 0, 0.5);
  border-left: 4px solid;
  animation: slide-in-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.flash-message::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.flash-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.flash-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}

.flash-icon svg {
  width: 100%;
  height: 100%;
}

.flash-text {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

/* Success/Notice */
.flash-notice,
.flash-success {
  border-left-color: #22C55E;
}

.flash-notice .flash-icon,
.flash-success .flash-icon {
  color: #86EFAC;
}

.flash-notice .flash-text,
.flash-success .flash-text {
  color: #D1FAE5;
}

/* Error/Alert */
.flash-error,
.flash-alert {
  border-left-color: #DC2626;
}

.flash-error .flash-icon,
.flash-alert .flash-icon {
  color: #FCA5A5;
}

.flash-error .flash-text,
.flash-alert .flash-text {
  color: #FEE2E2;
}

/* Warning */
.flash-warning {
  border-left-color: #F59E0B;
}

.flash-warning .flash-icon {
  color: #FCD34D;
}

.flash-warning .flash-text {
  color: #FEF3C7;
}
