.toast-container {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: toast-in 0.3s ease-out;
  background-color: white;
  pointer-events: auto;
  width: calc(100% - 32px); /* Account for container padding */
  margin: 0 auto;
  box-sizing: border-box;
  border-left: 4px solid;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-success {
  border-left-color: #10b981;
}

.toast-content {
  flex: 1;
  min-width: 0; /* Prevent content from causing overflow */
}

.toast-message {
  font-size: 15px;
  color: #1f2937;
  font-weight: 500;
  word-wrap: break-word; /* Allow text to wrap */
  overflow-wrap: break-word;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 0 0 12px;
  line-height: 1;
  flex-shrink: 0; /* Prevent button from shrinking */
}

.toast-close:hover {
  color: #6b7280;
}

.toast-hiding {
  animation: toast-out 0.3s ease-out forwards;
}

@keyframes toast-in {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Tablet and larger screens */
@media (min-width: 768px) {
  .toast-container {
    bottom: 24px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 400px;
  }
  
  .toast {
    width: 100%;
    border-radius: 8px;
  }
} 