.flash-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  max-width: 400px;
  width: 100%;
}

.flash-alert {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideIn 0.3s ease-out;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.flash-alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: currentColor;
}

.flash-alert:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.flash-alert-success {
  background: linear-gradient(135deg, rgba(141, 210, 98, 0.1), rgba(141, 210, 98, 0.05));
  color: var(--success);
  border-color: rgba(141, 210, 98, 0.3);
}

.flash-alert-danger {
  background: linear-gradient(135deg, rgba(240, 27, 88, 0.1), rgba(240, 27, 88, 0.05));
  color: var(--danger);
  border-color: rgba(240, 27, 88, 0.3);
}

.flash-alert-info {
  background: linear-gradient(135deg, rgba(76, 184, 184, 0.1), rgba(76, 184, 184, 0.05));
  color: var(--info);
  border-color: rgba(76, 184, 184, 0.3);
}

.flash-alert-warning {
  background: linear-gradient(135deg, rgba(231, 81, 33, 0.1), rgba(231, 81, 33, 0.05));
  color: var(--orange);
  border-color: rgba(231, 81, 33, 0.3);
}

.flash-alert-primary {
  background: linear-gradient(135deg, rgba(244, 65, 116, 0.1), rgba(244, 65, 116, 0.05));
  color: var(--primary);
  border-color: rgba(244, 65, 116, 0.3);
}

.flash-icon {
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.flash-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.flash-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: currentColor;
  opacity: 0.6;
  transition: opacity 0.2s;
  margin-left: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

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

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.flash-alert.removing {
  animation: slideOut 0.3s ease-out forwards;
}

/* Auto-dismiss progress bar */
.flash-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  animation: progress 5s linear;
}

@keyframes progress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}
