/* Swap.Htmx Default Styles */

/* Toast System */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
    pointer-events: none; /* Allow clicks to pass through container */
}

.toast {
    background: white;
    border: 1px solid #e5e7eb; /* var(--border) fallback */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    pointer-events: auto; /* Re-enable clicks on toasts */
    font-family: system-ui, -apple-system, sans-serif;
}

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

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-message {
    flex: 1;
    color: #1f2937; /* var(--text) fallback */
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #6b7280;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Toast level variants */
.toast-success {
    border-left: 4px solid #22c55e; /* var(--success) */
    background: #f0fdf4;
}

.toast-error {
    border-left: 4px solid #ef4444; /* var(--danger) */
    background: #fef2f2;
}

.toast-warning {
    border-left: 4px solid #f59e0b; /* var(--warning) */
    background: #fffbeb;
}

.toast-info {
    border-left: 4px solid #3b82f6; /* var(--info) */
    background: #eff6ff;
}
