.alert {
  display: flex;
  transform: translate(0, 0) rotate(0) skewX(0) skewY(0) scaleX(1.05)
    scaleY(1.05);
  align-items: center;
  border-left-width: 4px;
  border-left-style: solid;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter,
    backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  color: #e6fffb;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 23, 22, 0.9), rgba(6, 14, 14, 0.85));
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(10px) saturate(140%);
}
.alert-green {
  border-left-color: #58e6d4;
}

.alert-blue {
  border-left-color: #38bdf8;
}

.alert-yellow {
  border-left-color: #facc15;
}

.alert-red {
  border-left-color: #f87171;
}

.alert-img {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
}

.alert-text {
  font-size: 0.8rem;
  line-height: 1.25rem;
  font-weight: 600;
  flex: 1;
}

.alert-container {
  position: fixed;
  width: min(360px, 92vw);
  top: calc(7vh + 1rem);
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
}

.alert-close-button {
  background: transparent;
  border: none;
  color: #e6fffb;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 0.5rem;
}

.alert-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: rgba(88, 230, 212, 0.7);
  width: 0%;
  animation-name: progressBar;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.alert-red .alert-progress {
  background-color: rgba(248, 113, 113, 0.85);
}

@keyframes progressBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}
