/*!
 * ToastifyLite - Lightweight Toast Notification Plugin
 * Author: Destiny Chukuma - James Kuma (@iamkumadev)
 * Version: 1.0.0
 * License: MIT
 * Repository: https://github.com/iamkumadev/toastify-lite
 * NPM: https://www.npmjs.com/package/toastify-lite
 * Description: A modern, dependency-free JavaScript plugin to show toast notifications. 
 * Supports customizable messages, positions, themes, icons, and auto-dismiss logic.
 */

.toast-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  pointer-events: none;
}

.toast-container.top-right { top: 1rem; right: 1rem; align-items: flex-end; }
.toast-container.top-left { top: 1rem; left: 1rem; align-items: flex-start; }
.toast-container.bottom-right { bottom: 1rem; right: 1rem; align-items: flex-end; }
.toast-container.bottom-left { bottom: 1rem; left: 1rem; align-items: flex-start; }
.toast-container.top-center { top: 1rem; left: 50%; transform: translateX(-50%); }
.toast-container.bottom-center { bottom: 1rem; left: 50%; transform: translateX(-50%); }
.toast-container.center { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.toast {
  min-width: 280px;
  max-width: 400px;
  background-color: #fff;
  color: #333;
  padding: 0.85rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  animation: slideIn 0.4s ease-out;
  font-family: sans-serif;
}

.toast.dark { background-color: #1e1e1e; color: #fff; }
.toast-icon { font-size: 1.5rem; flex-shrink: 0; }
.toast-message { flex: 1; font-size: 0.95rem; }
.toast-close {
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 0.5rem;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  animation-timing-function: linear;
}

.toast.success { border-left: 5px solid #28a745; }
.toast.error { border-left: 5px solid #dc3545; }
.toast.warning { border-left: 5px solid #ffc107; }
.toast.info { border-left: 5px solid #17a2b8; }

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}