/* Toast Container */
.toast {
  position: fixed;
  z-index: 9999;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease-in-out;
  pointer-events: none;
}

/* Desktop/Tablet - Top Right */
@media (min-width: 768px) {
  .toast {
    top: 20px;
    right: 20px;
  }
}

/* Mobile - Center Bottom */
@media (max-width: 767px) {
  .toast {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    min-width: 280px;
    max-width: calc(100vw - 40px);
  }

  .toast.show {
    transform: translateX(-50%) translateY(0);
  }
}

/* Show state */
.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Toast Content */
.toast-content {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Message */
.toast-message {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}

/* Actions Container */
.toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Action Button */
.toast-action-btn {
  background: var(--primary-purple, #5a509a);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.toast-action-btn:hover {
  background: var(--primary-green, #66b721);
}

/* Close Button */
.toast-close-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close-btn:hover {
  color: #333;
}

/* Animation for mobile */
@media (max-width: 767px) {
  .toast {
    animation-duration: 0.3s;
    animation-timing-function: ease-out;
  }
}
