.toast-notification-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 380px;
  width: 100%;
}

.toast-notification-item {
  pointer-events: auto;
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(209, 213, 219, 0.4);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow: hidden;
  animation: toast-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.toast-notification-item.toast-exit {
  animation: toast-slide-out 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(120%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toast-slide-out {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(120%) scale(0.9);
  }
}

/* Status specific borders and ambient glows */
.toast-notification-item.toast-success {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08), 0 1px 8px rgba(16, 185, 129, 0.04);
}

.toast-notification-item.toast-error {
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.08), 0 1px 8px rgba(239, 68, 68, 0.04);
}

.toast-notification-item.toast-warning {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08), 0 1px 8px rgba(245, 158, 11, 0.04);
}

.toast-notification-item.toast-info {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08), 0 1px 8px rgba(59, 130, 246, 0.04);
}

.toast-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-success .toast-icon-wrapper {
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
}

.toast-error .toast-icon-wrapper {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

.toast-warning .toast-icon-wrapper {
  color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.1);
}

.toast-info .toast-icon-wrapper {
  color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

.toast-content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  line-height: 1.4;
  margin: 0;
}

.toast-message {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
  margin: 0;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  margin: -4px -4px 0 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #4b5563;
}

/* Progress Bar animation */
.toast-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
}

.toast-success .toast-progress-bar {
  background-color: rgba(16, 185, 129, 0.5);
}

.toast-error .toast-progress-bar {
  background-color: rgba(239, 68, 68, 0.5);
}

.toast-warning .toast-progress-bar {
  background-color: rgba(245, 158, 11, 0.5);
}

.toast-info .toast-progress-bar {
  background-color: rgba(59, 130, 246, 0.5);
}

@keyframes toast-progress-shrink {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
