/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 70px; /* Below navigation */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 600px;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
}

.flash-notice {
  background: #0d4f3c;
  color: #00ff41;
  border: 1px solid #00ff41;
}

.flash-alert {
  background: #4a0e0e;
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}

.flash-error {
  background: #4a0e0e;
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}

.flash-success {
  background: #0d4f3c;
  color: #00ff41;
  border: 1px solid #00ff41;
}

.flash-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  margin-left: 12px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auto-dismiss animation */
.flash.dismissing {
  animation: slideUp 0.3s ease-in forwards;
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}