.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  color: #111827; /* Tailwind gray-900 */
  padding: 24px 32px;
  font-size: 18px;
  font-weight: 500;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  max-width: 480px;
  border: 1px solid #e5e7eb; /* Tailwind gray-200 */
  animation: fadeIn 0.3s ease-in-out;
}

.toast.success {
  border-left: 6px solid #16a34a; /* green indicator */
}

.toast.error {
  border-left: 6px solid #dc2626; /* red indicator */
}

.toast-message {
  flex: 1;
  text-align: left;
  color: #1f2937; /* Tailwind gray-800 */
}

.toast-close {
  background: transparent;
  border: 2px solid #d1d5db; /* Tailwind gray-300 */
  color: #6b7280; /* Tailwind gray-500 */
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  border-radius: 6px;
  padding: 10px 10px;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background-color: #f3f4f6; /* Tailwind gray-100 */
  border-color: #9ca3af; /* Tailwind gray-400 */
  color: #111827; /* Tailwind gray-900 */
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.toast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 41, 55, 0.4); /* subtle dark overlay */
  z-index: 999;
}
