/* Toast Notification System */

.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 400px;
}

.toast {
  background: rgb(var(--color-bg-primary));
  border: 1px solid rgb(var(--color-border));
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 100%;
  word-wrap: break-word;
}

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

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: rgb(var(--color-text-primary));
}

.toast-message {
  font-size: 13px;
  color: rgb(var(--color-text-secondary));
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 18px;
  color: rgb(var(--color-text-muted));
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background: rgb(var(--color-bg-tertiary));
  color: rgb(var(--color-text-secondary));
}

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

.toast.success .toast-icon {
  background: rgb(var(--color-success));
}

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

.toast.error .toast-icon {
  background: rgb(var(--color-error));
}

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

.toast.warning .toast-icon {
  background: rgb(var(--color-warning));
}

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

.toast.info .toast-icon {
  background: rgb(var(--color-info));
}

/* Responsive design */
@media (max-width: 768px) {
  .toast-container {
    top: 70px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .toast {
    padding: 12px;
  }
  
  .toast-title {
    font-size: 13px;
  }
  
  .toast-message {
    font-size: 12px;
  }
}
