#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;
  pointer-events: none;
}

@media (max-width: 768px) {
  #toast-container {
    top: 12px;
    right: 0;
    left: 0;
    align-items: center;
  }

  .toast {
    width: calc(100vw - 24px) !important;
    transform: translateX(30px) !important;
  }

  .toast.visible {
    transform: translateX(0) !important;
  }

  .toast.toast-confirm {
    width: calc(100vw - 24px) !important;
  }
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-left: 5px solid transparent;
  padding: 14px 16px;
  opacity: 0;
  transform: translateX(100%);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  pointer-events: auto;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.toast.visible {
  opacity: 1;
  transform: translateX(0);
}

.toast .toast-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.toast .toast-content {
  flex: 1;
}
.toast .toast-title {
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 4px 0;
  color: #222;
}
.toast .toast-message {
  font-size: 13px;
  color: #555;
  margin: 0;
}

.toast .toast-close {
  appearance: none;
  border: none;
  background: transparent;
  color: #888;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-top: 6px;
}
.toast .toast-close:hover {
  color: #333;
}

.toast.success {
  border-left-color: #34a853;
}
.toast.error {
  border-left-color: #e53935;
}
.toast.info {
  border-left-color: #4285f4;
}
.toast.danger {
  border-left-color: #f4b400;
}

.toast.success .toast-icon {
  background: #e9f7ef;
  color: #34a853;
}
.toast.error .toast-icon {
  background: #fdecea;
  color: #e53935;
}
.toast.info .toast-icon {
  background: #e8f0fe;
  color: #4285f4;
}
.toast.danger .toast-icon {
  background: #fff7e6;
  color: #f4b400;
}

.toast.toast-confirm {
  width: 370px;
}

.toast-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.toast-btn {
  padding: 7px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.15s ease;
}

.toast-btn:active {
  transform: scale(0.96);
}

.toast-btn-yes {
  background: #e53935;
  color: #fff;
}

.toast-btn-yes:hover {
  opacity: 0.85;
}

.toast-btn-no {
  background: #f0f0f0;
  color: #333;
}

.toast-btn-no:hover {
  background: #e0e0e0;
}
