/* Toast Notification Styles */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--toast-bg-dark);
  border: 1px solid var(--toast-border-dark);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 50%);
  min-width: 300px;
  max-width: 500px;
  pointer-events: auto;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--text-base);
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: var(--text-sm);
  line-height: var(--line-height-tight);
  color: var(--toast-text-dark);
}

.toast-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: var(--text-2xl);
  line-height: var(--line-height-tight);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: rgb(255 255 255 / 10%);
  color: var(--text-primary);
}

/* Toast types */
.toast-success {
  border-left: 4px solid var(--color-success);
}

.toast-success .toast-icon {
  background: var(--badge-success-bg);
  color: var(--badge-success-text);
}

.toast-error {
  border-left: 4px solid var(--color-error);
}

.toast-error .toast-icon {
  background: var(--badge-error-bg);
  color: var(--badge-error-text);
}

.toast-warning {
  border-left: 4px solid var(--color-warning);
}

.toast-warning .toast-icon {
  background: var(--badge-warning-bg);
  color: var(--badge-warning-text);
}

.toast-info {
  border-left: 4px solid var(--color-info);
}

.toast-info .toast-icon {
  background: var(--badge-info-bg);
  color: var(--badge-info-text);
}

/* Mobile responsive */
@media (width <=640px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .toast {
    min-width: 0;
    max-width: 100%;
  }
}

/* Dark mode - already default, keeping for compatibility */
@media (prefers-color-scheme: dark) {
  .toast {
    background: var(--toast-bg-dark);
    box-shadow: 0 10px 40px rgb(0 0 0 / 50%);
  }

  .toast-message {
    color: var(--toast-text-dark);
  }

  .toast-close {
    color: var(--text-tertiary);
  }

  .toast-close:hover {
    background: rgb(255 255 255 / 10%);
    color: var(--text-primary);
  }
}
