
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  padding: 15px 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 14px;
  line-height: 1.45;
  box-sizing: border-box;
}

.toast.toast-hiding {
  animation: slideOutRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  border-left: 4px solid #28a745;
}

.toast-success .toast-icon {
  color: #28a745;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-error {
  border-left: 4px solid #e94560;
}

.toast-error .toast-icon {
  color: #e94560;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-content {
  flex-grow: 1;
  color: #2c3e50;
  word-break: break-word;
}

.toast-close {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #bbb;
  cursor: pointer;
  padding: 0;
  margin-left: 5px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  color: #999;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@media (max-width: 480px) {
  .toast-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  .toast {
    min-width: 100%;
    max-width: 100%;
  }
}
