/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Allow clicks to pass through container */
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto; /* Re-enable clicks for toasts */
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid #3869FA; /* Default brand color */
    font-family: var(--font-family, sans-serif);
    font-size: 14px;
    color: #333;
}

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

.toast.hiding {
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease-in, opacity 0.3s ease-in;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: #1a1a1a;
}

.toast-message {
    color: #666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* Toast Types */
.toast-success {
    border-left-color: #10b981;
}
.toast-success .toast-icon {
    color: #10b981;
}

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

.toast-info {
    border-left-color: #3869FA;
}
.toast-info .toast-icon {
    color: #3869FA;
}

.toast-warning {
    border-left-color: #f59e0b;
}
.toast-warning .toast-icon {
    color: #f59e0b;
}

@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
        transform: translateY(120%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast.hiding {
        transform: translateY(120%);
    }
}
