/* ==========================================================================
   Reusable Toast Notifications
   Usage (JS): Toast.show(message, { type: 'success'|'error'|'warning'|'info' })
   Shortcuts: Toast.success(msg), Toast.error(msg), Toast.warning(msg), Toast.info(msg)
   ========================================================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.toast-container.toast-top-left { top: 20px; left: 20px; right: auto; }
.toast-container.toast-bottom-right { top: auto; bottom: 20px; right: 20px; }
.toast-container.toast-bottom-left { top: auto; bottom: 20px; left: 20px; right: auto; }

.toast {
    pointer-events: auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: inherit;
}

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

.toast.toast-hide {
    opacity: 0;
    transform: translateX(20px);
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    flex-shrink: 0;
    background: #0d6efd;
}

.toast-icon.toast-icon-success { background: #198754; }
.toast-icon.toast-icon-error { background: #dc3545; }
.toast-icon.toast-icon-warning { background: #ffc107; }
.toast-icon.toast-icon-info { background: #0d6efd; }

.toast-title {
    font-weight: 700;
    font-size: 15px;
    color: #1f2329;
    margin-right: auto;
}

.toast-time {
    font-size: 13px;
    color: #8a8f98;
    white-space: nowrap;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #6b7280;
    padding: 0 2px;
    margin-left: 8px;
}

.toast-close:hover {
    color: #1f2329;
}

.toast-body {
    padding: 14px;
    font-size: 15px;
    color: #1f2329;
    line-height: 1.4;
}
