.container {
  width: 100%;
}

.toast {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
}

.content {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.closeButton {
  background: none;
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
  }

  &:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
}

.toast.error {
  background-color: rgba(255, 220, 220, 0.95);
  border-color: rgba(225, 43, 43, 0.2);
  color: #8b0000;
}

.toast.success {
  background-color: rgba(217, 255, 217, 0.95);
  border-color: rgba(34, 197, 94, 0.2);
  color: #166534;
}

.toast.warning {
  background-color: rgba(255, 251, 235, 0.95);
  border-color: rgba(245, 158, 11, 0.2);
  color: #92400e;
}

.toast.info {
  background-color: rgba(219, 234, 254, 0.95);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1e40af;
}

@keyframes appearance {
  0% {
    transform: translateY(100%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes disappearance {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100%) scale(0.8);
    opacity: 0;
  }
}

.toast {
  animation: appearance 0.3s ease-out;
  animation-fill-mode: both;
}

.toast.removing {
  animation: disappearance 0.3s ease-in;
  animation-fill-mode: both;
}

@media (max-width: 480px) {
  .toast {
    padding: 12px;
    gap: 8px;
    font-size: 13px;
  }

  .closeButton {
    padding: 2px;
  }
}
